Skip to content

Commit

Permalink
ci(tests): add test:ci to packages to differentiate between vitest an…
Browse files Browse the repository at this point in the history
…d jest
  • Loading branch information
jackw committed Jan 11, 2024
1 parent 36f218c commit aa1b55f
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 2 deletions.
7 changes: 6 additions & 1 deletion nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,12 @@
"cache": true
},
"test": {
"inputs": ["default", "{projectRoot}/jest.config.js", "{workspaceRoot}/jest.config.base.js"],
"inputs": [
"default",
"{projectRoot}/jest.config.js",
"{workspaceRoot}/jest.config.base.js",
"{projectRoot}/vitest.config.ts"
],
"cache": true
}
},
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"lint:fix": "nx run-many --target=lint:fix --parallel",
"release": "auto shipit",
"test": "nx run-many --target=test --parallel",
"test:ci": "nx run-many --target=test --ci",
"test:ci": "nx run-many --target=test:ci",
"typecheck": "nx run-many --target=typecheck --parallel",
"prepare": "husky install",
"postinstall": "patch-package"
Expand Down
1 change: 1 addition & 0 deletions packages/create-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
"lint": "eslint --cache --ext .js,.jsx,.ts,.tsx ./src",
"lint:fix": "npm run lint -- --fix",
"test": "vitest",
"test:ci": "vitest run",
"typecheck": "tsc --noEmit"
},
"dependencies": {
Expand Down
1 change: 1 addition & 0 deletions packages/plugin-e2e/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"server": "docker-compose up --build",
"typecheck": "tsc --emitDeclarationOnly false --noEmit",
"test": "jest",
"test:ci": "jest --ci",
"playwright:test": "npx playwright test",
"playwright:test:ui": "npx playwright test --ui",
"playwright:showreport": "npx playwright show-report"
Expand Down
1 change: 1 addition & 0 deletions packages/sign-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"lint": "eslint --cache --ext .js,.jsx,.ts,.tsx ./src",
"lint:fix": "npm run lint -- --fix",
"test": "jest",
"test:ci": "jest --ci",
"typecheck": "tsc --noEmit"
},
"dependencies": {
Expand Down

0 comments on commit aa1b55f

Please sign in to comment.