forked from mui/pigment-css
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[core] Migrate test runner to vitest
- Loading branch information
1 parent
6c51d74
commit 42bc0d6
Showing
60 changed files
with
669 additions
and
323 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,15 +29,10 @@ | |
"test": "node scripts/test.mjs", | ||
"tc": "node test/cli.js", | ||
"test:extended": "pnpm eslint && pnpm typescript && pnpm test:coverage", | ||
"test:coverage": "pnpm build && cross-env NODE_ENV=test BABEL_ENV=coverage nyc --reporter=text mocha 'packages/**/*.test.{js,ts,tsx}' 'docs/**/*.test.{js,ts,tsx}'", | ||
"test:coverage:ci": "pnpm build && cross-env NODE_ENV=test BABEL_ENV=coverage nyc --reporter=lcov mocha 'packages/**/*.test.{js,ts,tsx}' 'docs/**/*.test.{js,ts,tsx}'", | ||
"test:coverage:html": "pnpm build && cross-env NODE_ENV=test BABEL_ENV=coverage nyc --reporter=html mocha 'packages/**/*.test.{js,ts,tsx}' 'docs/**/*.test.{js,ts,tsx}'", | ||
"test:regressions": "cross-env NODE_ENV=production pnpm test:regressions:build && concurrently --success first --kill-others \"pnpm test:regressions:run\" \"pnpm test:regressions:server\"", | ||
"test:regressions:build": "webpack --config test/regressions/webpack.config.js", | ||
"test:regressions:dev": "concurrently \"pnpm test:regressions:build --watch\" \"pnpm test:regressions:server\"", | ||
"test:regressions:run": "mocha --config test/regressions/.mocharc.js --delay 'test/regressions/**/*.test.js'", | ||
"test:regressions:server": "serve test/regressions -p 5001", | ||
"test:unit": "cross-env NODE_ENV=test mocha 'packages/**/*.test.{js,ts,tsx}' 'docs/**/*.test.{js,ts,tsx}'", | ||
"test:coverage": "nx run-many -t test:ci", | ||
"test:coverage:ci": "NODE_ENV=test nx run-many -t test:ci", | ||
"test:coverage:html": "NODE_ENV=test nx run-many -t test:ci:html", | ||
"test:unit": "nx run-many -t test", | ||
"test:argos": "node ./scripts/pushArgos.mjs", | ||
"typescript": "tsc -b tsconfig.typecheck.json", | ||
"typescript:ci": "lerna run --concurrency 3 --no-bail --no-sort typescript", | ||
|
@@ -65,14 +60,17 @@ | |
"@next/eslint-plugin-next": "^14.1.4", | ||
"@octokit/rest": "^20.1.0", | ||
"@playwright/test": "1.43.0", | ||
"@testing-library/react": "^15.0.7", | ||
"@testing-library/jest-dom": "^6.4.5", | ||
"@types/fs-extra": "^11.0.4", | ||
"@types/lodash": "^4.17.0", | ||
"@types/mocha": "^10.0.6", | ||
"@types/node": "^18.19.30", | ||
"@types/react": "^18.2.74", | ||
"@types/yargs": "^17.0.32", | ||
"@typescript-eslint/eslint-plugin": "^7.5.0", | ||
"@typescript-eslint/parser": "^7.5.0", | ||
"@vitest/coverage-v8": "^1.6.0", | ||
"@vitest/ui": "^1.6.0", | ||
"babel-plugin-istanbul": "^6.1.1", | ||
"babel-plugin-module-resolver": "^5.0.0", | ||
"babel-plugin-transform-react-remove-prop-types": "^0.4.24", | ||
|
@@ -100,7 +98,6 @@ | |
"lerna": "^8.1.2", | ||
"lodash": "^4.17.21", | ||
"markdownlint-cli2": "^0.13.0", | ||
"mocha": "^10.4.0", | ||
"nx": "^18.2.3", | ||
"nyc": "^15.1.0", | ||
"postcss-styled-syntax": "^0.6.4", | ||
|
@@ -117,6 +114,7 @@ | |
"tsx": "^4.7.2", | ||
"typescript": "^5.4.4", | ||
"unist-util-visit": "^2.0.3", | ||
"vitest": "^1.6.0", | ||
"yargs": "^17.7.2" | ||
}, | ||
"packageManager": "[email protected]", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
/processors/ | ||
/utils/ | ||
LICENSE | ||
/html/ | ||
/coverage/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
.c1pj8glw { | ||
.ccs6o9u { | ||
color: red; | ||
font-size: 3rem; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
const cls1 = 'c1pj8glw'; | ||
const cls1 = 'ccs6o9u'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
packages/pigment-css-react/tests/keyframes/fixtures/keyframes-theme.output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
const gradientKeyframe = 'gpsum18'; | ||
const gradientKeyframe2 = 'g1t1dgxp'; | ||
const gradientKeyframe = 'g14ms9lx'; | ||
const gradientKeyframe2 = 'gz01um'; |
4 changes: 2 additions & 2 deletions
4
packages/pigment-css-react/tests/keyframes/fixtures/keyframes.output.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
packages/pigment-css-react/tests/keyframes/fixtures/keyframes.output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
const rotateKeyframe = 'rr2uptz'; | ||
const rotateKeyframe2 = 'r1dngkim'; | ||
const rotateKeyframe = 'r6toupf'; | ||
const rotateKeyframe2 = 'rwg7boy'; |
Oops, something went wrong.