Skip to content

Commit ed2c3c7

Browse files
committed
test: update type-definitions test
1 parent e4a96bc commit ed2c3c7

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

test/e2e/fixtures/type-definitions/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
"main": "dist/index.js",
55
"license": "MIT",
66
"devDependencies": {
7-
"typescript": "~4.9.0",
8-
"webpack": "^5.54.0"
7+
"@types/node": "^18.11.9",
8+
"typescript": "~5.8.0",
9+
"webpack": "^5.98.0"
910
}
1011
}

test/e2e/fixtures/type-definitions/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"compilerOptions": {
3-
"target": "es5",
3+
"target": "es2020",
44
"module": "commonjs",
55
"lib": ["ES6", "DOM"],
66
"moduleResolution": "node",

test/e2e/type-definitions.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ describe('Type Definitions', () => {
66
await sandbox.install('yarn', {});
77

88
expect(await sandbox.exec('yarn tsc', { fail: true })).toContain(
9-
"webpack.config.ts(7,7): error TS2322: Type 'string' is not assignable to type 'boolean | undefined'."
9+
"webpack.config.ts(10,7): error TS2322: Type 'string' is not assignable to type 'boolean | undefined'."
1010
);
1111

1212
await sandbox.patch('webpack.config.ts', "async: 'invalid_value'", 'async: true');

0 commit comments

Comments
 (0)