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. 4
      package.json
  6. 6
      packages/cli/package.json
  7. 5
      packages/connected-nextgraph/package.json
  8. 6
      packages/connected-solid/package.json
  9. 6
      packages/connected/package.json
  10. 5
      packages/dataset/package.json
  11. 5
      packages/jsonld-dataset-proxy/package.json
  12. 5
      packages/ldo/package.json
  13. 5
      packages/rdf-utils/package.json
  14. 5
      packages/react/package.json
  15. 5
      packages/schema-converter-shex/package.json
  16. 5
      packages/solid-react/package.json
  17. 5
      packages/solid-type-index/package.json
  18. 5
      packages/subscribable-dataset/package.json
  19. 5
      packages/svelte/package.json
  20. 5
      packages/test-solid-server/package.json
  21. 5
      packages/traverser-shexj/package.json
  22. 5
      packages/type-traverser/package.json

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

2
.gitignore vendored

@ -18,3 +18,5 @@ yarn-error.log*
coverage/ coverage/
docs/ 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==", "integrity": "sha512-YXet4a9wQP96Ru9MQSfoRUzsCaeboLPXj+rVG1ulH4t54zqFHiNmW6FPl7V2dTxk9uHlW3yb9+1jWO44AdWisw==",
"license": "ISC" "license": "ISC"
}, },
"node_modules/remove-dist": {
"resolved": "packages/solid-react/rimraf dist",
"link": true
},
"node_modules/require-directory": { "node_modules/require-directory": {
"version": "2.1.1", "version": "2.1.1",
"resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", "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" "@ldo/rdf-utils": "^1.0.0-alpha.21"
}, },
"devDependencies": { "devDependencies": {
"@ldo/connected-solid": "^1.0.0-alpha.26",
"@ldo/test-solid-server": "^1.0.0-alpha.24", "@ldo/test-solid-server": "^1.0.0-alpha.24",
"@rdfjs/types": "^1.0.1", "@rdfjs/types": "^1.0.1",
"cross-env": "^7.0.3", "cross-env": "^7.0.3",
@ -30526,6 +30529,7 @@
"version": "1.0.0-alpha.26", "version": "1.0.0-alpha.26",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@ldo/connected": "^1.0.0-alpha.21",
"@ldo/dataset": "^1.0.0-alpha.21", "@ldo/dataset": "^1.0.0-alpha.21",
"@ldo/ldo": "^1.0.0-alpha.21", "@ldo/ldo": "^1.0.0-alpha.21",
"@ldo/rdf-utils": "^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", "@ldo/rdf-utils": "^1.0.0-alpha.21",
"@rdfjs/types": "^1.0.1", "@rdfjs/types": "^1.0.1",
"@testing-library/react": "^14.1.2", "@testing-library/react": "^14.1.2",
"remove-dist": "rimraf dist/",
"start-server-and-test": "^2.0.3", "start-server-and-test": "^2.0.3",
"whatwg-fetch": "^3.6.20" "whatwg-fetch": "^3.6.20"
} }
@ -31373,6 +31378,12 @@
"dev": true, "dev": true,
"license": "MIT" "license": "MIT"
}, },
"packages/solid-react/rimraf dist": {
"dev": true
},
"packages/solid-react/rimraf dist/ && rimraf node_modules": {
"extraneous": true
},
"packages/solid-type-index": { "packages/solid-type-index": {
"name": "@ldo/solid-type-index", "name": "@ldo/solid-type-index",
"version": "1.0.0-alpha.26", "version": "1.0.0-alpha.26",

@ -8,7 +8,7 @@
"test": "lerna run test", "test": "lerna run test",
"build": "lerna run build", "build": "lerna run build",
"lint": "lerna run lint", "lint": "lerna run lint",
"clean": "lerna run clean", "clean": "lerna clean --yes && lerna run remove-dist && rimraf node_modules",
"publish": "lerna publish --no-private" "publish": "lerna publish --no-private"
}, },
"devDependencies": { "devDependencies": {
@ -32,4 +32,4 @@
"typescript": "^5.2.2", "typescript": "^5.2.2",
"vitest": "^3.1.3" "vitest": "^3.1.3"
} }
} }

@ -8,9 +8,9 @@
"ldo": "./dist/index.js" "ldo": "./dist/index.js"
}, },
"scripts": { "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", "build:ts": "tsc --project tsconfig.cjs.json",
"clean": "rimraf dist/", "remove-dist": "rimraf dist/",
"copy-files": "copyfiles -u 1 \"./src/**/*.ejs\" dist/", "copy-files": "copyfiles -u 1 \"./src/**/*.ejs\" dist/",
"update-permission": "chmod +x ./dist/index.js", "update-permission": "chmod +x ./dist/index.js",
"test": "jest --coverage", "test": "jest --coverage",
@ -61,4 +61,4 @@
"access": "public" "access": "public"
}, },
"gitHead": "840910c56ec3f61416f031cc76771a5673af6757" "gitHead": "840910c56ec3f61416f031cc76771a5673af6757"
} }

@ -24,7 +24,8 @@
"docs": "typedoc --plugin typedoc-plugin-markdown", "docs": "typedoc --plugin typedoc-plugin-markdown",
"start-test-server": "./test/ngd -vv --save-key -l 14400 --base ./test/nextgraph-data", "start-test-server": "./test/ngd -vv --save-key -l 14400 --base ./test/nextgraph-data",
"start-integration-test": "vitest run --coverage", "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": { "repository": {
"type": "git", "type": "git",
@ -69,4 +70,4 @@
"access": "public" "access": "public"
}, },
"gitHead": "840910c56ec3f61416f031cc76771a5673af6757" "gitHead": "840910c56ec3f61416f031cc76771a5673af6757"
} }

@ -22,7 +22,8 @@
"prepublishOnly": " npm run build", "prepublishOnly": " npm run build",
"build:ldo": "ldo build --input src/.shapes --output src/.ldo", "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",
"docs": "typedoc --plugin typedoc-plugin-markdown" "docs": "typedoc --plugin typedoc-plugin-markdown",
"remove-dist": "rimraf dist/"
}, },
"repository": { "repository": {
"type": "git", "type": "git",
@ -48,6 +49,7 @@
"typedoc-plugin-markdown": "^3.17.1" "typedoc-plugin-markdown": "^3.17.1"
}, },
"dependencies": { "dependencies": {
"@ldo/connected": "^1.0.0-alpha.21",
"@ldo/dataset": "^1.0.0-alpha.21", "@ldo/dataset": "^1.0.0-alpha.21",
"@ldo/ldo": "^1.0.0-alpha.21", "@ldo/ldo": "^1.0.0-alpha.21",
"@ldo/rdf-utils": "^1.0.0-alpha.21", "@ldo/rdf-utils": "^1.0.0-alpha.21",
@ -64,4 +66,4 @@
"access": "public" "access": "public"
}, },
"gitHead": "840910c56ec3f61416f031cc76771a5673af6757" "gitHead": "840910c56ec3f61416f031cc76771a5673af6757"
} }

@ -22,7 +22,8 @@
"prepublishOnly": " npm run build", "prepublishOnly": " npm run build",
"lint": "eslint src/** --fix --no-error-on-unmatched-pattern", "lint": "eslint src/** --fix --no-error-on-unmatched-pattern",
"docs": "typedoc --plugin typedoc-plugin-markdown", "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": { "repository": {
"type": "git", "type": "git",
@ -35,7 +36,6 @@
}, },
"homepage": "https://github.com/o-development/ldo/tree/main/packages/solid#readme", "homepage": "https://github.com/o-development/ldo/tree/main/packages/solid#readme",
"devDependencies": { "devDependencies": {
"@ldo/connected-solid": "^1.0.0-alpha.26",
"@ldo/test-solid-server": "^1.0.0-alpha.24", "@ldo/test-solid-server": "^1.0.0-alpha.24",
"@rdfjs/types": "^1.0.1", "@rdfjs/types": "^1.0.1",
"cross-env": "^7.0.3", "cross-env": "^7.0.3",
@ -61,4 +61,4 @@
"access": "public" "access": "public"
}, },
"gitHead": "840910c56ec3f61416f031cc76771a5673af6757" "gitHead": "840910c56ec3f61416f031cc76771a5673af6757"
} }

@ -22,7 +22,8 @@
"example:extendedDataset": "ts-node ./example/extendedDatasetExample.ts", "example:extendedDataset": "ts-node ./example/extendedDatasetExample.ts",
"example:loadData": "ts-node ./example/loadDataExample.ts", "example:loadData": "ts-node ./example/loadDataExample.ts",
"prepublishOnly": " npm run build", "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": { "repository": {
"type": "git", "type": "git",
@ -56,4 +57,4 @@
"access": "public" "access": "public"
}, },
"gitHead": "840910c56ec3f61416f031cc76771a5673af6757" "gitHead": "840910c56ec3f61416f031cc76771a5673af6757"
} }

@ -22,7 +22,8 @@
"prepublishOnly": " npm run build", "prepublishOnly": " npm run build",
"start": "ts-node ./example/example.ts", "start": "ts-node ./example/example.ts",
"start:lang": "ts-node ./example/languageExample.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": { "repository": {
"type": "git", "type": "git",
@ -57,4 +58,4 @@
"access": "public" "access": "public"
}, },
"gitHead": "840910c56ec3f61416f031cc76771a5673af6757" "gitHead": "840910c56ec3f61416f031cc76771a5673af6757"
} }

@ -22,7 +22,8 @@
"example": "ts-node ./example/example.ts", "example": "ts-node ./example/example.ts",
"prepublishOnly": " npm run build", "prepublishOnly": " npm run build",
"lint": "eslint src/** --fix --no-error-on-unmatched-pattern", "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": { "repository": {
"type": "git", "type": "git",
@ -63,4 +64,4 @@
"access": "public" "access": "public"
}, },
"gitHead": "840910c56ec3f61416f031cc76771a5673af6757" "gitHead": "840910c56ec3f61416f031cc76771a5673af6757"
} }

@ -20,7 +20,8 @@
"test": "jest --coverage", "test": "jest --coverage",
"test:watch": "jest --watch", "test:watch": "jest --watch",
"prepublishOnly": " npm run build", "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": { "repository": {
"type": "git", "type": "git",
@ -49,4 +50,4 @@
"access": "public" "access": "public"
}, },
"gitHead": "840910c56ec3f61416f031cc76771a5673af6757" "gitHead": "840910c56ec3f61416f031cc76771a5673af6757"
} }

@ -21,7 +21,8 @@
"test": "vitest run --coverage", "test": "vitest run --coverage",
"prepublishOnly": " npm run build", "prepublishOnly": " npm run build",
"build:ldo": "ldo build --input src/shapes --output src/ldo", "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": { "repository": {
"type": "git", "type": "git",
@ -55,4 +56,4 @@
"access": "public" "access": "public"
}, },
"gitHead": "840910c56ec3f61416f031cc76771a5673af6757" "gitHead": "840910c56ec3f61416f031cc76771a5673af6757"
} }

@ -20,7 +20,8 @@
"build:esm": "tsc --project tsconfig.esm.json", "build:esm": "tsc --project tsconfig.esm.json",
"test": "jest --coverage", "test": "jest --coverage",
"prepublishOnly": " npm run build", "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": { "repository": {
"type": "git", "type": "git",
@ -52,4 +53,4 @@
"access": "public" "access": "public"
}, },
"gitHead": "840910c56ec3f61416f031cc76771a5673af6757" "gitHead": "840910c56ec3f61416f031cc76771a5673af6757"
} }

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

@ -21,7 +21,8 @@
"test": "vitest run --coverage", "test": "vitest run --coverage",
"prepublishOnly": " npm run build", "prepublishOnly": " npm run build",
"build:ldo": "ldo build --input src/.shapes --output src/.ldo", "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": { "repository": {
"type": "git", "type": "git",
@ -54,4 +55,4 @@
"access": "public" "access": "public"
}, },
"gitHead": "840910c56ec3f61416f031cc76771a5673af6757" "gitHead": "840910c56ec3f61416f031cc76771a5673af6757"
} }

@ -21,7 +21,8 @@
"test": "jest --coverage", "test": "jest --coverage",
"example:subscribableDataset": "ts-node ./example/subscribableDatasetExample.ts", "example:subscribableDataset": "ts-node ./example/subscribableDatasetExample.ts",
"prepublishOnly": " npm run build", "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": { "repository": {
"type": "git", "type": "git",
@ -54,4 +55,4 @@
"access": "public" "access": "public"
}, },
"gitHead": "840910c56ec3f61416f031cc76771a5673af6757" "gitHead": "840910c56ec3f61416f031cc76771a5673af6757"
} }

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

@ -20,7 +20,8 @@
"build:esm": "tsc --project tsconfig.esm.json", "build:esm": "tsc --project tsconfig.esm.json",
"prepublishOnly": "npm run build", "prepublishOnly": "npm run build",
"copy-configs": "cp -r src/configs dist/cjs/configs && cp -r src/configs dist/esm/configs", "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": { "repository": {
"type": "git", "type": "git",
@ -45,4 +46,4 @@
"access": "public" "access": "public"
}, },
"gitHead": "840910c56ec3f61416f031cc76771a5673af6757" "gitHead": "840910c56ec3f61416f031cc76771a5673af6757"
} }

@ -20,7 +20,8 @@
"build:esm": "tsc --project tsconfig.esm.json", "build:esm": "tsc --project tsconfig.esm.json",
"test": "jest --coverage", "test": "jest --coverage",
"prepublishOnly": " npm run build", "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": { "repository": {
"type": "git", "type": "git",
@ -43,4 +44,4 @@
"access": "public" "access": "public"
}, },
"gitHead": "840910c56ec3f61416f031cc76771a5673af6757" "gitHead": "840910c56ec3f61416f031cc76771a5673af6757"
} }

@ -21,7 +21,8 @@
"test": "jest --coverage", "test": "jest --coverage",
"start": "ts-node ./example/example", "start": "ts-node ./example/example",
"prepublishOnly": " npm run build", "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": { "repository": {
"type": "git", "type": "git",
@ -49,4 +50,4 @@
"access": "public" "access": "public"
}, },
"gitHead": "840910c56ec3f61416f031cc76771a5673af6757" "gitHead": "840910c56ec3f61416f031cc76771a5673af6757"
} }
Loading…
Cancel
Save