You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
exec("npm",["i","--ignore-scripts"],{ cwd,timeout: timeout/2});// NPM shouldn't take the entire timeout - if it takes a long time, it should be terminated and we should log the failure
// Also actually install those types (for, eg, the js projects which need node)
82
84
exec("npm",["i", ...types.map(t=>`@types/${t}`),"--no-save","--ignore-scripts"],{cwd: originalCwd,timeout: timeout/2});// NPM shouldn't take the entire timeout - if it takes a long time, it should be terminated and we should log the failure
Copy file name to clipboardExpand all lines: tests/baselines/reference/user/TypeScript-WeChat-Starter.log
+7-11
Original file line number
Diff line number
Diff line change
@@ -1,16 +1,12 @@
1
1
Exit Code: 1
2
2
Standard output:
3
-
src/App.test.tsx(5,1): error TS2593: Cannot find name 'it'. Do you need to install type definitions for a test runner? Try `npm i @types/jest` or `npm i @types/mocha` and then add `jest` or `mocha` to the types field in your tsconfig.
4
-
src/components/Hello.test.tsx(5,1): error TS2593: Cannot find name 'it'. Do you need to install type definitions for a test runner? Try `npm i @types/jest` or `npm i @types/mocha` and then add `jest` or `mocha` to the types field in your tsconfig.
5
-
src/components/Hello.test.tsx(7,3): error TS2304: Cannot find name 'expect'.
6
-
src/components/Hello.test.tsx(10,1): error TS2593: Cannot find name 'it'. Do you need to install type definitions for a test runner? Try `npm i @types/jest` or `npm i @types/mocha` and then add `jest` or `mocha` to the types field in your tsconfig.
7
-
src/components/Hello.test.tsx(12,3): error TS2304: Cannot find name 'expect'.
8
-
src/components/Hello.test.tsx(15,1): error TS2593: Cannot find name 'it'. Do you need to install type definitions for a test runner? Try `npm i @types/jest` or `npm i @types/mocha` and then add `jest` or `mocha` to the types field in your tsconfig.
9
-
src/components/Hello.test.tsx(17,3): error TS2304: Cannot find name 'expect'.
10
-
src/components/Hello.test.tsx(20,1): error TS2593: Cannot find name 'it'. Do you need to install type definitions for a test runner? Try `npm i @types/jest` or `npm i @types/mocha` and then add `jest` or `mocha` to the types field in your tsconfig.
11
-
src/components/Hello.test.tsx(21,3): error TS2304: Cannot find name 'expect'.
12
-
src/components/Hello.test.tsx(26,1): error TS2593: Cannot find name 'it'. Do you need to install type definitions for a test runner? Try `npm i @types/jest` or `npm i @types/mocha` and then add `jest` or `mocha` to the types field in your tsconfig.
13
-
src/components/Hello.test.tsx(27,3): error TS2304: Cannot find name 'expect'.
3
+
../../../../../node_modules/@types/mocha/index.d.ts(2720,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'beforeEach' must be of type 'Lifecycle', but here has type 'HookFunction'.
4
+
../../../../../node_modules/@types/mocha/index.d.ts(2738,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'afterEach' must be of type 'Lifecycle', but here has type 'HookFunction'.
5
+
../../../../../node_modules/@types/mocha/index.d.ts(2754,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'describe' must be of type 'Describe', but here has type 'SuiteFunction'.
6
+
../../../../../node_modules/@types/mocha/index.d.ts(2775,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'xdescribe' must be of type 'Describe', but here has type 'PendingSuiteFunction'.
7
+
../../../../../node_modules/@types/mocha/index.d.ts(2789,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'it' must be of type 'It', but here has type 'TestFunction'.
8
+
../../../../../node_modules/@types/mocha/index.d.ts(2803,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'test' must be of type 'It', but here has type 'TestFunction'.
9
+
../../../../../node_modules/@types/mocha/index.d.ts(2810,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'xit' must be of type 'It', but here has type 'PendingTestFunction'.
lib/Page.js(448,7): error TS2740: Type '(...args: any[]) => Promise<any>' is missing the following properties from type 'Window': applicationCache, clientInformation, closed, customElements, and 222 more.
60
+
lib/Page.js(448,7): error TS2740: Type '(...args: any[]) => Promise<any>' is missing the following properties from type 'Window': applicationCache, clientInformation, closed, customElements, and 241 more.
60
61
lib/Page.js(458,9): error TS2349: This expression is not callable.
0 commit comments