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

chore: move from jest to vitest #2067

Draft
wants to merge 7 commits into
base: next
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 1 commit
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
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
run: yarn build

- name: Test coverage
run: yarn jest test/ --collectCoverage=true
run: yarn test:coverage

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ const outputPath = "path/to/output/file";

const schemaString = JSON.stringify(schema, null, 2);
fs.writeFile(outputPath, schemaString, (err) => {
if (err) throw err;
if (err) throw err);
domoritz marked this conversation as resolved.
Show resolved Hide resolved
});
```

Expand Down Expand Up @@ -213,7 +213,7 @@ const outputPath = "path/to/output/file";

const schemaString = JSON.stringify(schema, null, 2);
fs.writeFile(outputPath, schemaString, (err) => {
if (err) throw err;
if (err) throw err);
domoritz marked this conversation as resolved.
Show resolved Hide resolved
});
```

Expand Down
17 changes: 0 additions & 17 deletions jest.config.cjs

This file was deleted.

11 changes: 5 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@
"prepublishOnly": "yarn build",
"release": "yarn build && auto shipit",
"run": "tsx ts-json-schema-generator.ts",
"test": "jest test/ --verbose",
"test:coverage": "yarn jest test/ --collectCoverage=true",
"test:fast": "cross-env FAST_TEST=1 jest test/ --verbose",
"test": "vitest test/ --verbose",
"test:coverage": "yarn vitest test/ --collectCoverage=true",
"test:fast": "cross-env FAST_TEST=1 vitest test/ --verbose",
"test:update": "cross-env UPDATE_SCHEMA=true yarn test:fast",
"watch": "tsc -w"
},
Expand Down Expand Up @@ -85,13 +85,12 @@
"eslint": "^9.6.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.1.3",
"jest": "^29.7.0",
"jest-junit": "^16.0.0",
"prettier": "^3.3.2",
"tsx": "^4.16.0",
"typescript-eslint": "^7.14.1",
"vega": "^5.30.0",
"vega-lite": "^5.19.0"
"vega-lite": "^5.19.0",
"vitest": "^0.34.1"
},
"engines": {
"node": ">=18.0.0"
Expand Down
Loading