Skip to content

Commit 8abd4cf

Browse files
committed
Update vitest and use concurrent option
1 parent 435bcc5 commit 8abd4cf

File tree

3 files changed

+165
-12
lines changed

3 files changed

+165
-12
lines changed

packages/cli-v3/e2e/index.test.ts

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,11 @@ const allTestCases: TestCase[] = [
3333
name: "server-only",
3434
skipTypecheck: true,
3535
},
36-
// {
37-
// name: "infisical-sdk",
38-
// skipTypecheck: true,
39-
// },
36+
{
37+
name: "infisical-sdk",
38+
skipTypecheck: true,
39+
wantCompilationError: true, // FIXME: remove once bug is fixed
40+
},
4041
];
4142

4243
const testCases = process.env.MOD
@@ -184,14 +185,14 @@ if (testCases.length > 0) {
184185
delete global.resolvedConfig;
185186
});
186187

187-
test.skipIf(skipTypecheck)("typechecks", async () => {
188+
test.skipIf(skipTypecheck).concurrent("typechecks", async () => {
188189
await expect(
189190
(async () =>
190191
await typecheckProject((global.resolvedConfig as ReadConfigFileResult).config))()
191192
).resolves.not.toThrowError();
192193
});
193194

194-
test(
195+
test.concurrent(
195196
wantCompilationError ? "does not compile" : "compiles",
196197
async () => {
197198
const expectation = expect(
@@ -259,7 +260,7 @@ if (testCases.length > 0) {
259260
delete global.dependencies;
260261
});
261262

262-
test("copies postinstall command into Containerfile.prod", async () => {
263+
test.concurrent("copies postinstall command into Containerfile.prod", async () => {
263264
await expect(
264265
(async () => {
265266
await createContainerFile({
@@ -270,7 +271,7 @@ if (testCases.length > 0) {
270271
).resolves.not.toThrowError();
271272
});
272273

273-
test("creates deploy hash", async () => {
274+
test.concurrent("creates deploy hash", async () => {
274275
await expect(
275276
(async () => {
276277
await createDeployHash({

packages/cli-v3/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
"tsup": "^8.0.1",
5454
"type-fest": "^3.6.0",
5555
"typescript": "^5.3.3",
56-
"vitest": "^0.34.4",
56+
"vitest": "^1.6.0",
5757
"xdg-app-paths": "^8.3.0"
5858
},
5959
"scripts": {

pnpm-lock.yaml

Lines changed: 155 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)