Skip to content

Commit

Permalink
update vitest (#208)
Browse files Browse the repository at this point in the history
* update vitest

* convert-touchstone: fix tests
  • Loading branch information
QuentinRoy authored Dec 14, 2023
1 parent 01f1a21 commit 9a37443
Show file tree
Hide file tree
Showing 9 changed files with 333 additions and 126 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ describe('convert', () => {

it('fails if it is provided with an empty string', async () => {
await expect(() => convert('')).rejects.toThrowErrorMatchingInlineSnapshot(
'"No experiment tag found"',
`[Error: No experiment tag found]`,
);
});

Expand All @@ -135,6 +135,8 @@ describe('convert', () => {

await expect(() =>
convert(noOpReadable),
).rejects.toThrowErrorMatchingInlineSnapshot('"No experiment tag found"');
).rejects.toThrowErrorMatchingInlineSnapshot(
`[Error: No experiment tag found]`,
);
});
});
2 changes: 1 addition & 1 deletion packages/convert-touchstone/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"cross-env": "^7.0.3",
"typescript": "5.3.2",
"vite": "^5.0.5",
"vitest": "^0.34.1"
"vitest": "^1.0.2"
},
"scripts": {
"test": "cross-env NODE_ENV=test vitest",
Expand Down
2 changes: 1 addition & 1 deletion packages/log-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"devDependencies": {
"typescript": "5.3.2",
"vite": "^5.0.5",
"vitest": "^0.34.1"
"vitest": "^1.0.2"
},
"dependencies": {
"@zodios/core": "^10.9.2",
Expand Down
4 changes: 2 additions & 2 deletions packages/log-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@
"devDependencies": {
"@types/throttle-debounce": "^5.0.2",
"cross-env": "^7.0.3",
"msw": "^2.0.8",
"msw": "^2.0.10",
"type-fest": "^4.8.2",
"typescript": "5.3.2",
"vitest": "^0.34.1"
"vitest": "^1.0.2"
},
"dependencies": {
"@lightmill/log-api": "workspace:*",
Expand Down
3 changes: 1 addition & 2 deletions packages/log-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@
"tsx": "^4.2.0",
"type-fest": "^4.8.2",
"typescript": "5.3.2",
"vite": "^5.0.5",
"vitest": "^0.34.6"
"vitest": "^1.0.2"
},
"dependencies": {
"@lightmill/log-api": "workspace:*",
Expand Down
4 changes: 2 additions & 2 deletions packages/react-experiment/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"@testing-library/react": "^14.1.2",
"@testing-library/user-event": "^14.4.3",
"@types/react": "^18.2.38",
"@vitejs/plugin-react": "^4.2.0",
"@vitejs/plugin-react": "^4.2.1",
"cross-env": "^7.0.3",
"eslint": "8.54.0",
"eslint-config-react-app": "^7.0.1",
Expand All @@ -42,7 +42,7 @@
"type-fest": "^4.8.2",
"typescript": "5.3.2",
"vite": "^5.0.5",
"vitest": "^0.34.1"
"vitest": "^1.0.2"
},
"scripts": {
"test": "cross-env NODE_ENV=test vitest",
Expand Down
2 changes: 1 addition & 1 deletion packages/runner/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"cross-env": "^7.0.3",
"typescript": "5.3.2",
"vite": "^5.0.5",
"vitest": "^0.34.1"
"vitest": "^1.0.2"
},
"scripts": {
"test": "cross-env NODE_ENV=test vitest",
Expand Down
2 changes: 1 addition & 1 deletion packages/static-design/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"cross-env": "7.0.3",
"typescript": "5.3.2",
"vite": "^5.0.5",
"vitest": "^0.34.1"
"vitest": "^1.0.2"
},
"exports": {
"import": {
Expand Down
Loading

0 comments on commit 9a37443

Please sign in to comment.