Skip to content

Commit 9177418

Browse files
committed
feat(nx-plugin): update to zod v4
1 parent 82dc535 commit 9177418

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/nx-plugin/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,6 @@
3737
"@nx/devkit": "^17.0.0 || ^18.0.0 || ^19.0.0",
3838
"ansis": "^3.3.0",
3939
"nx": "^17.0.0 || ^18.0.0 || ^19.0.0",
40-
"zod": "^3.22.4"
40+
"zod": "^4.0.5"
4141
}
4242
}

packages/nx-plugin/src/executors/internal/env.unit.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ describe('parseEnv', () => {
3131
});
3232

3333
it('should throw for process.env.CP_TIMEOUT option < 0', () => {
34-
expect(() => parseEnv({ CP_TIMEOUT: '-1' })).toThrow('Invalid');
34+
expect(() => parseEnv({ CP_TIMEOUT: '-1' })).toThrow('Invalid string');
3535
});
3636

3737
it('should throw for invalid URL in process.env.CP_SERVER option', () => {
38-
expect(() => parseEnv({ CP_SERVER: 'httptpt' })).toThrow('Invalid url');
38+
expect(() => parseEnv({ CP_SERVER: 'httptpt' })).toThrow('Invalid URL');
3939
});
4040
});

0 commit comments

Comments
 (0)