Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: WIP - rewrite type tests to vitest #2426

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
192 changes: 191 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 13 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,23 +66,26 @@
"prettier": "prettier --write '**/*.{jsx,js,ts,tsx}'",
"prettier:check": "prettier --check '**/*.{jsx,js,ts,tsx}'",
"pretest": "rimraf coverage",
"test": "npm run test:unit && npm run test:integration && npm run lint && npm run test:types",
"test:unit": "vitest --run ./test/unit",
"test:unit:watch": "vitest ./test/unit",
"test:integration": "vitest --run ./test/integration",
"test:integration:watch": "vitest ./test/integration",
"test": "npm run lint && npm run test:cover-unit && npm run test:types && npm run test:cover-integration && npm run test:size",
"test:cover-unit": "npm run test:unit -- --coverage",
"test:cover-integration": "npm run test:integration -- --coverage",
"test:unit": "npx vitest --project unit --run",
"test:types": "npx vitest --project types --run",
"test:unit-watch": "npx vitest --project unit",
"test:integration": "npx vitest --project integration --run --no-file-parallelism",
"test:integration-watch": "npx vitest --project integration --no-file-parallelism",
"test:browser": "npx playwright install && npx vitest --project browser-unit --run && npx vitest --project browser-integration --run",
"test:version": "grep -r \"0.0.0-determined-by-semantic-release\" ./dist > /dev/null && echo \"version 0.0.0-determined-by-semantic-release found in output\" && exit 1 || exit 0",
"test:size": "size-limit",
"test:demo-projects": "npm run test:demo-node && npm run test:demo-browser",
"test:demo-node": "rimraf ./test/output-integration/node/node-modules && npm --prefix ./test/output-integration/node ci && vitest --run ./test/output-integration/node",
"test:demo-browser": "rimraf ./test/output-integration/browser/node-modules && npm --prefix ./test/output-integration/browser ci && npm --prefix ./test/output-integration/browser run test",
"test:types": "tsd",
"test:prepush": "npm run build && npm run test:unit && npm run test:types",
"prepublishOnly": "export PUBLISH_RUN=true && npm run build && unset PUBLISH_RUN",
"prepublishOnly": "export PUBLISH_RUN=true && npm run build && unset PUBLISH_RUN && npm run test:version",
"postpublish": "npm run docs:publish && npm run clean",
"semantic-release": "semantic-release",
"prepare": "husky",
"precommit": "npm run lint && npm run prettier:check",
"prepush": "npm run test:prepush"
"precommit": "npm run lint && npm run prettier:check"
},
"dependencies": {
"@contentful/content-source-maps": "^0.11.7",
Expand All @@ -109,6 +112,7 @@
"@types/json-stringify-safe": "^5.0.0",
"@typescript-eslint/eslint-plugin": "^7.3.1",
"@typescript-eslint/parser": "^7.3.1",
"@vitest/coverage-v8": "^2.1.8",
"contentful-sdk-jsdoc": "^3.1.2",
"cz-conventional-changelog": "^3.3.0",
"es-check": "^7.0.0",
Expand Down
Loading