Fixed tests from a fresh build

main
Jackson Morgan 3 months ago
parent dadf06a2c2
commit 41d94262d4
  1. 9
      .github/workflows/test.yml
  2. 2
      .gitignore
  3. 28
      nx.json
  4. 13
      package-lock.json
  5. 2
      package.json
  6. 4
      packages/cli/package.json
  7. 3
      packages/connected-nextgraph/package.json
  8. 4
      packages/connected-solid/package.json
  9. 4
      packages/connected/package.json
  10. 3
      packages/dataset/package.json
  11. 3
      packages/jsonld-dataset-proxy/package.json
  12. 3
      packages/ldo/package.json
  13. 3
      packages/rdf-utils/package.json
  14. 3
      packages/react/package.json
  15. 3
      packages/schema-converter-shex/package.json
  16. 3
      packages/solid-react/package.json
  17. 3
      packages/solid-type-index/package.json
  18. 3
      packages/subscribable-dataset/package.json
  19. 3
      packages/svelte/package.json
  20. 3
      packages/test-solid-server/package.json
  21. 3
      packages/traverser-shexj/package.json
  22. 3
      packages/type-traverser/package.json

@ -1,4 +1,4 @@
name: Test Node.js Monorepo
name: CI - Build & Test
on:
pull_request:
@ -18,13 +18,10 @@ jobs:
node-version: '20'
cache: 'npm'
- name: Install dependencies with npm workspaces
- name: Install dependencies using npm workspaces
run: npm install
- name: Bootstrap workspaces (if needed)
run: npx lerna link
- name: Build all packages
- name: Build all packages in topological order
run: npm run build
- name: Run tests

2
.gitignore vendored

@ -18,3 +18,5 @@ yarn-error.log*
coverage/
docs/
.nx

@ -1,28 +0,0 @@
{
"tasksRunnerOptions": {
"default": {
"runner": "nx/tasks-runners/default",
"options": {
"cacheableOperations": [
"build",
"test"
]
}
}
},
"targetDefaults": {
"build": {
"dependsOn": [
"^build"
],
"outputs": [
"{projectRoot}/dist"
]
},
"test": {
"outputs": [
"{projectRoot}/coverage"
]
}
}
}

13
package-lock.json generated

@ -24428,6 +24428,10 @@
"integrity": "sha512-YXet4a9wQP96Ru9MQSfoRUzsCaeboLPXj+rVG1ulH4t54zqFHiNmW6FPl7V2dTxk9uHlW3yb9+1jWO44AdWisw==",
"license": "ISC"
},
"node_modules/remove-dist": {
"resolved": "packages/solid-react/rimraf dist",
"link": true
},
"node_modules/require-directory": {
"version": "2.1.1",
"resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz",
@ -30404,7 +30408,6 @@
"@ldo/rdf-utils": "^1.0.0-alpha.21"
},
"devDependencies": {
"@ldo/connected-solid": "^1.0.0-alpha.26",
"@ldo/test-solid-server": "^1.0.0-alpha.24",
"@rdfjs/types": "^1.0.1",
"cross-env": "^7.0.3",
@ -30526,6 +30529,7 @@
"version": "1.0.0-alpha.26",
"license": "MIT",
"dependencies": {
"@ldo/connected": "^1.0.0-alpha.21",
"@ldo/dataset": "^1.0.0-alpha.21",
"@ldo/ldo": "^1.0.0-alpha.21",
"@ldo/rdf-utils": "^1.0.0-alpha.21",
@ -31253,6 +31257,7 @@
"@ldo/rdf-utils": "^1.0.0-alpha.21",
"@rdfjs/types": "^1.0.1",
"@testing-library/react": "^14.1.2",
"remove-dist": "rimraf dist/",
"start-server-and-test": "^2.0.3",
"whatwg-fetch": "^3.6.20"
}
@ -31373,6 +31378,12 @@
"dev": true,
"license": "MIT"
},
"packages/solid-react/rimraf dist": {
"dev": true
},
"packages/solid-react/rimraf dist/ && rimraf node_modules": {
"extraneous": true
},
"packages/solid-type-index": {
"name": "@ldo/solid-type-index",
"version": "1.0.0-alpha.26",

@ -8,7 +8,7 @@
"test": "lerna run test",
"build": "lerna run build",
"lint": "lerna run lint",
"clean": "lerna run clean",
"clean": "lerna clean --yes && lerna run remove-dist && rimraf node_modules",
"publish": "lerna publish --no-private"
},
"devDependencies": {

@ -8,9 +8,9 @@
"ldo": "./dist/index.js"
},
"scripts": {
"build": "npm run clean && npm run build:ts && npm run copy-files && npm run update-permission",
"build": "npm run remove-dist && npm run build:ts && npm run copy-files && npm run update-permission",
"build:ts": "tsc --project tsconfig.cjs.json",
"clean": "rimraf dist/",
"remove-dist": "rimraf dist/",
"copy-files": "copyfiles -u 1 \"./src/**/*.ejs\" dist/",
"update-permission": "chmod +x ./dist/index.js",
"test": "jest --coverage",

@ -24,7 +24,8 @@
"docs": "typedoc --plugin typedoc-plugin-markdown",
"start-test-server": "./test/ngd -vv --save-key -l 14400 --base ./test/nextgraph-data",
"start-integration-test": "vitest run --coverage",
"test:integration": "start-server-and-test start-test-server http-get://localhost:14400 start-integration-test"
"test:integration": "start-server-and-test start-test-server http-get://localhost:14400 start-integration-test",
"remove-dist": "rimraf dist/"
},
"repository": {
"type": "git",

@ -22,7 +22,8 @@
"prepublishOnly": " npm run build",
"build:ldo": "ldo build --input src/.shapes --output src/.ldo",
"lint": "eslint src/** --fix --no-error-on-unmatched-pattern",
"docs": "typedoc --plugin typedoc-plugin-markdown"
"docs": "typedoc --plugin typedoc-plugin-markdown",
"remove-dist": "rimraf dist/"
},
"repository": {
"type": "git",
@ -48,6 +49,7 @@
"typedoc-plugin-markdown": "^3.17.1"
},
"dependencies": {
"@ldo/connected": "^1.0.0-alpha.21",
"@ldo/dataset": "^1.0.0-alpha.21",
"@ldo/ldo": "^1.0.0-alpha.21",
"@ldo/rdf-utils": "^1.0.0-alpha.21",

@ -22,7 +22,8 @@
"prepublishOnly": " npm run build",
"lint": "eslint src/** --fix --no-error-on-unmatched-pattern",
"docs": "typedoc --plugin typedoc-plugin-markdown",
"build:ldo": "ldo build --input test/.shapes --output test/.ldo"
"build:ldo": "ldo build --input test/.shapes --output test/.ldo",
"remove-dist": "rimraf dist/"
},
"repository": {
"type": "git",
@ -35,7 +36,6 @@
},
"homepage": "https://github.com/o-development/ldo/tree/main/packages/solid#readme",
"devDependencies": {
"@ldo/connected-solid": "^1.0.0-alpha.26",
"@ldo/test-solid-server": "^1.0.0-alpha.24",
"@rdfjs/types": "^1.0.1",
"cross-env": "^7.0.3",

@ -22,7 +22,8 @@
"example:extendedDataset": "ts-node ./example/extendedDatasetExample.ts",
"example:loadData": "ts-node ./example/loadDataExample.ts",
"prepublishOnly": " npm run build",
"lint": "eslint src/** --fix --no-error-on-unmatched-pattern"
"lint": "eslint src/** --fix --no-error-on-unmatched-pattern",
"remove-dist": "rimraf dist/"
},
"repository": {
"type": "git",

@ -22,7 +22,8 @@
"prepublishOnly": " npm run build",
"start": "ts-node ./example/example.ts",
"start:lang": "ts-node ./example/languageExample.ts",
"lint": "eslint src/** --fix --no-error-on-unmatched-pattern"
"lint": "eslint src/** --fix --no-error-on-unmatched-pattern",
"remove-dist": "rimraf dist/"
},
"repository": {
"type": "git",

@ -22,7 +22,8 @@
"example": "ts-node ./example/example.ts",
"prepublishOnly": " npm run build",
"lint": "eslint src/** --fix --no-error-on-unmatched-pattern",
"docs": "typedoc --plugin typedoc-plugin-markdown"
"docs": "typedoc --plugin typedoc-plugin-markdown",
"remove-dist": "rimraf dist/"
},
"repository": {
"type": "git",

@ -20,7 +20,8 @@
"test": "jest --coverage",
"test:watch": "jest --watch",
"prepublishOnly": " npm run build",
"lint": "eslint src/** --fix --no-error-on-unmatched-pattern"
"lint": "eslint src/** --fix --no-error-on-unmatched-pattern",
"remove-dist": "rimraf dist/"
},
"repository": {
"type": "git",

@ -21,7 +21,8 @@
"test": "vitest run --coverage",
"prepublishOnly": " npm run build",
"build:ldo": "ldo build --input src/shapes --output src/ldo",
"lint": "eslint src/** --fix --no-error-on-unmatched-pattern"
"lint": "eslint src/** --fix --no-error-on-unmatched-pattern",
"remove-dist": "rimraf dist/"
},
"repository": {
"type": "git",

@ -20,7 +20,8 @@
"build:esm": "tsc --project tsconfig.esm.json",
"test": "jest --coverage",
"prepublishOnly": " npm run build",
"lint": "eslint src/** --fix --no-error-on-unmatched-pattern"
"lint": "eslint src/** --fix --no-error-on-unmatched-pattern",
"remove-dist": "rimraf dist/"
},
"repository": {
"type": "git",

@ -40,7 +40,8 @@
"@rdfjs/types": "^1.0.1",
"@testing-library/react": "^14.1.2",
"start-server-and-test": "^2.0.3",
"whatwg-fetch": "^3.6.20"
"whatwg-fetch": "^3.6.20",
"remove-dist": "rimraf dist/"
},
"dependencies": {
"@inrupt/solid-client-authn-browser": "2.5.0",

@ -21,7 +21,8 @@
"test": "vitest run --coverage",
"prepublishOnly": " npm run build",
"build:ldo": "ldo build --input src/.shapes --output src/.ldo",
"lint": "eslint src/** --fix --no-error-on-unmatched-pattern"
"lint": "eslint src/** --fix --no-error-on-unmatched-pattern",
"remove-dist": "rimraf dist/"
},
"repository": {
"type": "git",

@ -21,7 +21,8 @@
"test": "jest --coverage",
"example:subscribableDataset": "ts-node ./example/subscribableDatasetExample.ts",
"prepublishOnly": " npm run build",
"lint": "eslint src/** --fix --no-error-on-unmatched-pattern"
"lint": "eslint src/** --fix --no-error-on-unmatched-pattern",
"remove-dist": "rimraf dist/"
},
"repository": {
"type": "git",

@ -25,7 +25,8 @@
"test": "jest --coverage",
"lint": "eslint . --ext .js,.ts,.svelte --fix --no-error-on-unmatched-pattern",
"format": "prettier --write .",
"prepublishOnly": "npm run build"
"prepublishOnly": "npm run build",
"remove-dist": "rimraf dist/"
},
"repository": {
"type": "git",

@ -20,7 +20,8 @@
"build:esm": "tsc --project tsconfig.esm.json",
"prepublishOnly": "npm run build",
"copy-configs": "cp -r src/configs dist/cjs/configs && cp -r src/configs dist/esm/configs",
"lint": "eslint src/** --fix --no-error-on-unmatched-pattern"
"lint": "eslint src/** --fix --no-error-on-unmatched-pattern",
"remove-dist": "rimraf dist/"
},
"repository": {
"type": "git",

@ -20,7 +20,8 @@
"build:esm": "tsc --project tsconfig.esm.json",
"test": "jest --coverage",
"prepublishOnly": " npm run build",
"lint": "eslint src/** --fix --no-error-on-unmatched-pattern"
"lint": "eslint src/** --fix --no-error-on-unmatched-pattern",
"remove-dist": "rimraf dist/"
},
"repository": {
"type": "git",

@ -21,7 +21,8 @@
"test": "jest --coverage",
"start": "ts-node ./example/example",
"prepublishOnly": " npm run build",
"lint": "eslint src/** --fix --no-error-on-unmatched-pattern"
"lint": "eslint src/** --fix --no-error-on-unmatched-pattern",
"remove-dist": "rimraf dist/"
},
"repository": {
"type": "git",

Loading…
Cancel
Save