mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-14 06:43:25 +08:00
build(test): remove vitest from subpackages
Removes vitest from all subpackages so that vitest/`pnpm run test` are only in the root mono-repo. This is required, because otherwise the root vitest and the subpackage vitest versions can otherwise be slightly different, which causes issues when running unit tests: ```Snapshot cannot be used outside of test``` In the future, we may want to consider moving package specific tests into `packages/*/test`, and instead running these tests with `pnpm run --recursive`, so that tests are run in each package by their own version of vitest. This is the way that most projects do things (e.g. https://github.com/vitest-dev/vitest).
This commit is contained in:
parent
c420224080
commit
1f39fde230
@ -29,10 +29,6 @@
|
|||||||
"lint": "eslint --cache --ignore-path .gitignore . && yarn lint:jison && prettier --check .",
|
"lint": "eslint --cache --ignore-path .gitignore . && yarn lint:jison && prettier --check .",
|
||||||
"lint:fix": "eslint --fix --ignore-path .gitignore . && prettier --write .",
|
"lint:fix": "eslint --fix --ignore-path .gitignore . && prettier --write .",
|
||||||
"lint:jison": "ts-node-esm src/jison/lint.mts",
|
"lint:jison": "ts-node-esm src/jison/lint.mts",
|
||||||
"ci": "vitest run",
|
|
||||||
"test": "yarn lint && vitest run",
|
|
||||||
"test:watch": "vitest --coverage --watch",
|
|
||||||
"todo-prepublishOnly": "yarn build && yarn test",
|
|
||||||
"todo-prepare": "concurrently \"husky install ../../.husky\" \"yarn build\"",
|
"todo-prepare": "concurrently \"husky install ../../.husky\" \"yarn build\"",
|
||||||
"todo-pre-commit": "lint-staged"
|
"todo-pre-commit": "lint-staged"
|
||||||
},
|
},
|
||||||
|
@ -29,10 +29,6 @@
|
|||||||
"lint": "eslint --cache --ignore-path .gitignore . && yarn lint:jison && prettier --check .",
|
"lint": "eslint --cache --ignore-path .gitignore . && yarn lint:jison && prettier --check .",
|
||||||
"lint:fix": "eslint --fix --ignore-path .gitignore . && prettier --write .",
|
"lint:fix": "eslint --fix --ignore-path .gitignore . && prettier --write .",
|
||||||
"lint:jison": "ts-node-esm src/jison/lint.mts",
|
"lint:jison": "ts-node-esm src/jison/lint.mts",
|
||||||
"ci": "vitest run",
|
|
||||||
"test": "yarn lint && vitest run",
|
|
||||||
"test:watch": "vitest --coverage --watch",
|
|
||||||
"todo-prepublishOnly": "yarn build && yarn test",
|
|
||||||
"todo-prepare": "concurrently \"husky install ../../.husky\" \"yarn build\"",
|
"todo-prepare": "concurrently \"husky install ../../.husky\" \"yarn build\"",
|
||||||
"todo-pre-commit": "lint-staged"
|
"todo-pre-commit": "lint-staged"
|
||||||
},
|
},
|
||||||
|
@ -41,10 +41,6 @@
|
|||||||
"cypress": "cypress run",
|
"cypress": "cypress run",
|
||||||
"cypress:open": "cypress open",
|
"cypress:open": "cypress open",
|
||||||
"e2e": "start-server-and-test dev http://localhost:9000/ cypress",
|
"e2e": "start-server-and-test dev http://localhost:9000/ cypress",
|
||||||
"ci": "vitest run",
|
|
||||||
"test": "yarn lint && vitest run",
|
|
||||||
"test:watch": "vitest --coverage --watch",
|
|
||||||
"prepublishOnly": "yarn build && yarn test",
|
|
||||||
"todo-prepare": "concurrently \"husky install\" \"yarn build\"",
|
"todo-prepare": "concurrently \"husky install\" \"yarn build\"",
|
||||||
"pre-commit": "lint-staged"
|
"pre-commit": "lint-staged"
|
||||||
},
|
},
|
||||||
@ -92,8 +88,6 @@
|
|||||||
"@types/stylis": "^4.0.2",
|
"@types/stylis": "^4.0.2",
|
||||||
"@typescript-eslint/eslint-plugin": "^5.37.0",
|
"@typescript-eslint/eslint-plugin": "^5.37.0",
|
||||||
"@typescript-eslint/parser": "^5.37.0",
|
"@typescript-eslint/parser": "^5.37.0",
|
||||||
"@vitest/coverage-c8": "^0.23.2",
|
|
||||||
"@vitest/ui": "^0.23.2",
|
|
||||||
"concurrently": "^7.4.0",
|
"concurrently": "^7.4.0",
|
||||||
"coveralls": "^3.1.1",
|
"coveralls": "^3.1.1",
|
||||||
"cypress": "^10.0.0",
|
"cypress": "^10.0.0",
|
||||||
@ -125,8 +119,7 @@
|
|||||||
"start-server-and-test": "^1.12.6",
|
"start-server-and-test": "^1.12.6",
|
||||||
"ts-node": "^10.9.1",
|
"ts-node": "^10.9.1",
|
||||||
"typescript": "^4.8.3",
|
"typescript": "^4.8.3",
|
||||||
"unist-util-flatmap": "^1.0.0",
|
"unist-util-flatmap": "^1.0.0"
|
||||||
"vitest": "^0.23.1"
|
|
||||||
},
|
},
|
||||||
"resolutions": {
|
"resolutions": {
|
||||||
"d3": "^7.0.0"
|
"d3": "^7.0.0"
|
||||||
|
67
pnpm-lock.yaml
generated
67
pnpm-lock.yaml
generated
@ -164,8 +164,6 @@ importers:
|
|||||||
'@types/stylis': ^4.0.2
|
'@types/stylis': ^4.0.2
|
||||||
'@typescript-eslint/eslint-plugin': ^5.37.0
|
'@typescript-eslint/eslint-plugin': ^5.37.0
|
||||||
'@typescript-eslint/parser': ^5.37.0
|
'@typescript-eslint/parser': ^5.37.0
|
||||||
'@vitest/coverage-c8': ^0.23.2
|
|
||||||
'@vitest/ui': ^0.23.2
|
|
||||||
concurrently: ^7.4.0
|
concurrently: ^7.4.0
|
||||||
coveralls: ^3.1.1
|
coveralls: ^3.1.1
|
||||||
cypress: ^10.0.0
|
cypress: ^10.0.0
|
||||||
@ -209,7 +207,6 @@ importers:
|
|||||||
ts-node: ^10.9.1
|
ts-node: ^10.9.1
|
||||||
typescript: ^4.8.3
|
typescript: ^4.8.3
|
||||||
unist-util-flatmap: ^1.0.0
|
unist-util-flatmap: ^1.0.0
|
||||||
vitest: ^0.23.1
|
|
||||||
dependencies:
|
dependencies:
|
||||||
'@braintree/sanitize-url': 6.0.0
|
'@braintree/sanitize-url': 6.0.0
|
||||||
d3: 7.6.1
|
d3: 7.6.1
|
||||||
@ -237,8 +234,6 @@ importers:
|
|||||||
'@types/stylis': 4.0.2
|
'@types/stylis': 4.0.2
|
||||||
'@typescript-eslint/eslint-plugin': 5.38.0_wsb62dxj2oqwgas4kadjymcmry
|
'@typescript-eslint/eslint-plugin': 5.38.0_wsb62dxj2oqwgas4kadjymcmry
|
||||||
'@typescript-eslint/parser': 5.38.0_irgkl5vooow2ydyo6aokmferha
|
'@typescript-eslint/parser': 5.38.0_irgkl5vooow2ydyo6aokmferha
|
||||||
'@vitest/coverage-c8': 0.23.4_y2hohvmcqnhseytaw4yjcnsnkm
|
|
||||||
'@vitest/ui': 0.23.4
|
|
||||||
concurrently: 7.4.0
|
concurrently: 7.4.0
|
||||||
coveralls: 3.1.1
|
coveralls: 3.1.1
|
||||||
cypress: 10.8.0
|
cypress: 10.8.0
|
||||||
@ -271,7 +266,6 @@ importers:
|
|||||||
ts-node: 10.9.1_typescript@4.8.3
|
ts-node: 10.9.1_typescript@4.8.3
|
||||||
typescript: 4.8.3
|
typescript: 4.8.3
|
||||||
unist-util-flatmap: 1.0.0
|
unist-util-flatmap: 1.0.0
|
||||||
vitest: 0.23.4_y2hohvmcqnhseytaw4yjcnsnkm
|
|
||||||
|
|
||||||
packages/mermaid-example-diagram:
|
packages/mermaid-example-diagram:
|
||||||
specifiers:
|
specifiers:
|
||||||
@ -3582,24 +3576,6 @@ packages:
|
|||||||
- terser
|
- terser
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/@vitest/coverage-c8/0.23.4_y2hohvmcqnhseytaw4yjcnsnkm:
|
|
||||||
resolution: {integrity: sha512-jmD00a5DQH9gu9K+YdvVhcMuv2CzHvU4gCnySS40Ec5hKlXtlCzRfNHl00VnhfuBeaQUmaQYe60BLT413HyDdg==}
|
|
||||||
dependencies:
|
|
||||||
c8: 7.12.0
|
|
||||||
vitest: 0.23.4_y2hohvmcqnhseytaw4yjcnsnkm
|
|
||||||
transitivePeerDependencies:
|
|
||||||
- '@edge-runtime/vm'
|
|
||||||
- '@vitest/browser'
|
|
||||||
- '@vitest/ui'
|
|
||||||
- happy-dom
|
|
||||||
- jsdom
|
|
||||||
- less
|
|
||||||
- sass
|
|
||||||
- stylus
|
|
||||||
- supports-color
|
|
||||||
- terser
|
|
||||||
dev: true
|
|
||||||
|
|
||||||
/@vitest/ui/0.23.4:
|
/@vitest/ui/0.23.4:
|
||||||
resolution: {integrity: sha512-lNZVTTrkHThGAwNQ1ah1qCNnm70r7OLB5LCUdSqboStve/1eKTrtt27QfDSSUTG8AVJQzU0eaN/j8UocH+CqfA==}
|
resolution: {integrity: sha512-lNZVTTrkHThGAwNQ1ah1qCNnm70r7OLB5LCUdSqboStve/1eKTrtt27QfDSSUTG8AVJQzU0eaN/j8UocH+CqfA==}
|
||||||
dependencies:
|
dependencies:
|
||||||
@ -13187,49 +13163,6 @@ packages:
|
|||||||
- terser
|
- terser
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/vitest/0.23.4_y2hohvmcqnhseytaw4yjcnsnkm:
|
|
||||||
resolution: {integrity: sha512-iukBNWqQAv8EKDBUNntspLp9SfpaVFbmzmM0sNcnTxASQZMzRw3PsM6DMlsHiI+I6GeO5/sYDg3ecpC+SNFLrQ==}
|
|
||||||
engines: {node: '>=v14.16.0'}
|
|
||||||
hasBin: true
|
|
||||||
peerDependencies:
|
|
||||||
'@edge-runtime/vm': '*'
|
|
||||||
'@vitest/browser': '*'
|
|
||||||
'@vitest/ui': '*'
|
|
||||||
happy-dom: '*'
|
|
||||||
jsdom: '*'
|
|
||||||
peerDependenciesMeta:
|
|
||||||
'@edge-runtime/vm':
|
|
||||||
optional: true
|
|
||||||
'@vitest/browser':
|
|
||||||
optional: true
|
|
||||||
'@vitest/ui':
|
|
||||||
optional: true
|
|
||||||
happy-dom:
|
|
||||||
optional: true
|
|
||||||
jsdom:
|
|
||||||
optional: true
|
|
||||||
dependencies:
|
|
||||||
'@types/chai': 4.3.3
|
|
||||||
'@types/chai-subset': 1.3.3
|
|
||||||
'@types/node': 18.7.21
|
|
||||||
'@vitest/ui': 0.23.4
|
|
||||||
chai: 4.3.6
|
|
||||||
debug: 4.3.4
|
|
||||||
jsdom: 20.0.0
|
|
||||||
local-pkg: 0.4.2
|
|
||||||
strip-literal: 0.4.2
|
|
||||||
tinybench: 2.1.5
|
|
||||||
tinypool: 0.3.0
|
|
||||||
tinyspy: 1.0.2
|
|
||||||
vite: 3.1.3
|
|
||||||
transitivePeerDependencies:
|
|
||||||
- less
|
|
||||||
- sass
|
|
||||||
- stylus
|
|
||||||
- supports-color
|
|
||||||
- terser
|
|
||||||
dev: true
|
|
||||||
|
|
||||||
/vm2/3.9.11:
|
/vm2/3.9.11:
|
||||||
resolution: {integrity: sha512-PFG8iJRSjvvBdisowQ7iVF580DXb1uCIiGaXgm7tynMR1uTBlv7UJlB1zdv5KJ+Tmq1f0Upnj3fayoEOPpCBKg==}
|
resolution: {integrity: sha512-PFG8iJRSjvvBdisowQ7iVF580DXb1uCIiGaXgm7tynMR1uTBlv7UJlB1zdv5KJ+Tmq1f0Upnj3fayoEOPpCBKg==}
|
||||||
engines: {node: '>=6.0'}
|
engines: {node: '>=6.0'}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user