Skip to content

Commit 7bee58c

Browse files
committed
refactor: update plugin-typescript in tests and snapshots
1 parent 44e18dc commit 7bee58c

2 files changed

Lines changed: 23 additions & 3 deletions

File tree

packages/plugin-typescript/src/lib/runner/__snapshots__/runner.int.test.ts.snap

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,26 @@ exports[`createRunnerFunction > should create valid audit outputs when called 1`
2525
{
2626
"details": {
2727
"issues": [
28+
{
29+
"message": "TS2694: Namespace '"./node_modules/minimatch/dist/commonjs/index"' has no exported member 'IOptions'.",
30+
"severity": "error",
31+
"source": {
32+
"file": "node_modules/@types/glob/index.d.ts",
33+
"position": {
34+
"startLine": 29,
35+
},
36+
},
37+
},
38+
{
39+
"message": "TS2724: '"./node_modules/minimatch/dist/commonjs/index"' has no exported member named 'IMinimatch'. Did you mean 'Minimatch'?",
40+
"severity": "error",
41+
"source": {
42+
"file": "node_modules/@types/glob/index.d.ts",
43+
"position": {
44+
"startLine": 74,
45+
},
46+
},
47+
},
2848
{
2949
"message": "TS2307: Cannot find module './non-existent' or its corresponding type declarations.",
3050
"severity": "error",
@@ -78,10 +98,10 @@ exports[`createRunnerFunction > should create valid audit outputs when called 1`
7898
},
7999
],
80100
},
81-
"displayValue": "5 errors",
101+
"displayValue": "7 errors",
82102
"score": 0,
83103
"slug": "semantic-errors",
84-
"value": 5,
104+
"value": 7,
85105
},
86106
{
87107
"details": {

packages/plugin-typescript/src/lib/runner/ts-runner.int.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ describe('getTypeScriptDiagnostics', () => {
88
tsconfig:
99
'packages/plugin-typescript/mocks/fixtures/basic-setup/tsconfig.json',
1010
}),
11-
).resolves.toHaveLength(5);
11+
).resolves.toHaveLength(8);
1212
});
1313
});

0 commit comments

Comments
 (0)