Skip to content

Commit 978193e

Browse files
committed
Set target for tests with implied target from module
1 parent c1592ad commit 978193e

124 files changed

Lines changed: 120 additions & 259 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

tests/baselines/reference/bundlerDirectoryModule(module=node20,moduleresolution=nodenext).trace.json

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -147,13 +147,5 @@
147147
"File '/.ts/package.json' does not exist according to earlier cached lookups.",
148148
"File '/package.json' does not exist according to earlier cached lookups.",
149149
"File '/.ts/package.json' does not exist according to earlier cached lookups.",
150-
"File '/package.json' does not exist according to earlier cached lookups.",
151-
"File '/.ts/package.json' does not exist according to earlier cached lookups.",
152-
"File '/package.json' does not exist according to earlier cached lookups.",
153-
"File '/.ts/package.json' does not exist according to earlier cached lookups.",
154-
"File '/package.json' does not exist according to earlier cached lookups.",
155-
"File '/.ts/package.json' does not exist according to earlier cached lookups.",
156-
"File '/package.json' does not exist according to earlier cached lookups.",
157-
"File '/.ts/package.json' does not exist according to earlier cached lookups.",
158150
"File '/package.json' does not exist according to earlier cached lookups."
159151
]

tests/baselines/reference/bundlerDirectoryModule(module=nodenext,moduleresolution=nodenext).trace.json

Lines changed: 0 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -147,53 +147,5 @@
147147
"File '/.ts/package.json' does not exist according to earlier cached lookups.",
148148
"File '/package.json' does not exist according to earlier cached lookups.",
149149
"File '/.ts/package.json' does not exist according to earlier cached lookups.",
150-
"File '/package.json' does not exist according to earlier cached lookups.",
151-
"File '/.ts/package.json' does not exist according to earlier cached lookups.",
152-
"File '/package.json' does not exist according to earlier cached lookups.",
153-
"File '/.ts/package.json' does not exist according to earlier cached lookups.",
154-
"File '/package.json' does not exist according to earlier cached lookups.",
155-
"File '/.ts/package.json' does not exist according to earlier cached lookups.",
156-
"File '/package.json' does not exist according to earlier cached lookups.",
157-
"File '/.ts/package.json' does not exist according to earlier cached lookups.",
158-
"File '/package.json' does not exist according to earlier cached lookups.",
159-
"File '/.ts/package.json' does not exist according to earlier cached lookups.",
160-
"File '/package.json' does not exist according to earlier cached lookups.",
161-
"File '/.ts/package.json' does not exist according to earlier cached lookups.",
162-
"File '/package.json' does not exist according to earlier cached lookups.",
163-
"File '/.ts/package.json' does not exist according to earlier cached lookups.",
164-
"File '/package.json' does not exist according to earlier cached lookups.",
165-
"File '/.ts/package.json' does not exist according to earlier cached lookups.",
166-
"File '/package.json' does not exist according to earlier cached lookups.",
167-
"File '/.ts/package.json' does not exist according to earlier cached lookups.",
168-
"File '/package.json' does not exist according to earlier cached lookups.",
169-
"File '/.ts/package.json' does not exist according to earlier cached lookups.",
170-
"File '/package.json' does not exist according to earlier cached lookups.",
171-
"File '/.ts/package.json' does not exist according to earlier cached lookups.",
172-
"File '/package.json' does not exist according to earlier cached lookups.",
173-
"File '/.ts/package.json' does not exist according to earlier cached lookups.",
174-
"File '/package.json' does not exist according to earlier cached lookups.",
175-
"File '/.ts/package.json' does not exist according to earlier cached lookups.",
176-
"File '/package.json' does not exist according to earlier cached lookups.",
177-
"File '/.ts/package.json' does not exist according to earlier cached lookups.",
178-
"File '/package.json' does not exist according to earlier cached lookups.",
179-
"File '/.ts/package.json' does not exist according to earlier cached lookups.",
180-
"File '/package.json' does not exist according to earlier cached lookups.",
181-
"File '/.ts/package.json' does not exist according to earlier cached lookups.",
182-
"File '/package.json' does not exist according to earlier cached lookups.",
183-
"File '/.ts/package.json' does not exist according to earlier cached lookups.",
184-
"File '/package.json' does not exist according to earlier cached lookups.",
185-
"File '/.ts/package.json' does not exist according to earlier cached lookups.",
186-
"File '/package.json' does not exist according to earlier cached lookups.",
187-
"File '/.ts/package.json' does not exist according to earlier cached lookups.",
188-
"File '/package.json' does not exist according to earlier cached lookups.",
189-
"File '/.ts/package.json' does not exist according to earlier cached lookups.",
190-
"File '/package.json' does not exist according to earlier cached lookups.",
191-
"File '/.ts/package.json' does not exist according to earlier cached lookups.",
192-
"File '/package.json' does not exist according to earlier cached lookups.",
193-
"File '/.ts/package.json' does not exist according to earlier cached lookups.",
194-
"File '/package.json' does not exist according to earlier cached lookups.",
195-
"File '/.ts/package.json' does not exist according to earlier cached lookups.",
196-
"File '/package.json' does not exist according to earlier cached lookups.",
197-
"File '/.ts/package.json' does not exist according to earlier cached lookups.",
198150
"File '/package.json' does not exist according to earlier cached lookups."
199151
]

tests/baselines/reference/moduleResolutionWithModule(module=commonjs,moduleresolution=node16).js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,5 @@ var __importStar = (this && this.__importStar) || (function () {
4848
};
4949
})();
5050
Object.defineProperty(exports, "__esModule", { value: true });
51-
var p = __importStar(require("pkg"));
51+
const p = __importStar(require("pkg"));
5252
p.thing();

tests/baselines/reference/moduleResolutionWithModule(module=commonjs,moduleresolution=nodenext).js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,5 @@ var __importStar = (this && this.__importStar) || (function () {
4848
};
4949
})();
5050
Object.defineProperty(exports, "__esModule", { value: true });
51-
var p = __importStar(require("pkg"));
51+
const p = __importStar(require("pkg"));
5252
p.thing();

tests/baselines/reference/nodeModulesExportsBlocksTypesVersions(module=node20).trace.json

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -332,13 +332,5 @@
332332
"File '/.ts/package.json' does not exist according to earlier cached lookups.",
333333
"File '/package.json' does not exist according to earlier cached lookups.",
334334
"File '/.ts/package.json' does not exist according to earlier cached lookups.",
335-
"File '/package.json' does not exist according to earlier cached lookups.",
336-
"File '/.ts/package.json' does not exist according to earlier cached lookups.",
337-
"File '/package.json' does not exist according to earlier cached lookups.",
338-
"File '/.ts/package.json' does not exist according to earlier cached lookups.",
339-
"File '/package.json' does not exist according to earlier cached lookups.",
340-
"File '/.ts/package.json' does not exist according to earlier cached lookups.",
341-
"File '/package.json' does not exist according to earlier cached lookups.",
342-
"File '/.ts/package.json' does not exist according to earlier cached lookups.",
343335
"File '/package.json' does not exist according to earlier cached lookups."
344336
]

tests/baselines/reference/nodeModulesExportsBlocksTypesVersions(module=nodenext).trace.json

Lines changed: 0 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -332,53 +332,5 @@
332332
"File '/.ts/package.json' does not exist according to earlier cached lookups.",
333333
"File '/package.json' does not exist according to earlier cached lookups.",
334334
"File '/.ts/package.json' does not exist according to earlier cached lookups.",
335-
"File '/package.json' does not exist according to earlier cached lookups.",
336-
"File '/.ts/package.json' does not exist according to earlier cached lookups.",
337-
"File '/package.json' does not exist according to earlier cached lookups.",
338-
"File '/.ts/package.json' does not exist according to earlier cached lookups.",
339-
"File '/package.json' does not exist according to earlier cached lookups.",
340-
"File '/.ts/package.json' does not exist according to earlier cached lookups.",
341-
"File '/package.json' does not exist according to earlier cached lookups.",
342-
"File '/.ts/package.json' does not exist according to earlier cached lookups.",
343-
"File '/package.json' does not exist according to earlier cached lookups.",
344-
"File '/.ts/package.json' does not exist according to earlier cached lookups.",
345-
"File '/package.json' does not exist according to earlier cached lookups.",
346-
"File '/.ts/package.json' does not exist according to earlier cached lookups.",
347-
"File '/package.json' does not exist according to earlier cached lookups.",
348-
"File '/.ts/package.json' does not exist according to earlier cached lookups.",
349-
"File '/package.json' does not exist according to earlier cached lookups.",
350-
"File '/.ts/package.json' does not exist according to earlier cached lookups.",
351-
"File '/package.json' does not exist according to earlier cached lookups.",
352-
"File '/.ts/package.json' does not exist according to earlier cached lookups.",
353-
"File '/package.json' does not exist according to earlier cached lookups.",
354-
"File '/.ts/package.json' does not exist according to earlier cached lookups.",
355-
"File '/package.json' does not exist according to earlier cached lookups.",
356-
"File '/.ts/package.json' does not exist according to earlier cached lookups.",
357-
"File '/package.json' does not exist according to earlier cached lookups.",
358-
"File '/.ts/package.json' does not exist according to earlier cached lookups.",
359-
"File '/package.json' does not exist according to earlier cached lookups.",
360-
"File '/.ts/package.json' does not exist according to earlier cached lookups.",
361-
"File '/package.json' does not exist according to earlier cached lookups.",
362-
"File '/.ts/package.json' does not exist according to earlier cached lookups.",
363-
"File '/package.json' does not exist according to earlier cached lookups.",
364-
"File '/.ts/package.json' does not exist according to earlier cached lookups.",
365-
"File '/package.json' does not exist according to earlier cached lookups.",
366-
"File '/.ts/package.json' does not exist according to earlier cached lookups.",
367-
"File '/package.json' does not exist according to earlier cached lookups.",
368-
"File '/.ts/package.json' does not exist according to earlier cached lookups.",
369-
"File '/package.json' does not exist according to earlier cached lookups.",
370-
"File '/.ts/package.json' does not exist according to earlier cached lookups.",
371-
"File '/package.json' does not exist according to earlier cached lookups.",
372-
"File '/.ts/package.json' does not exist according to earlier cached lookups.",
373-
"File '/package.json' does not exist according to earlier cached lookups.",
374-
"File '/.ts/package.json' does not exist according to earlier cached lookups.",
375-
"File '/package.json' does not exist according to earlier cached lookups.",
376-
"File '/.ts/package.json' does not exist according to earlier cached lookups.",
377-
"File '/package.json' does not exist according to earlier cached lookups.",
378-
"File '/.ts/package.json' does not exist according to earlier cached lookups.",
379-
"File '/package.json' does not exist according to earlier cached lookups.",
380-
"File '/.ts/package.json' does not exist according to earlier cached lookups.",
381-
"File '/package.json' does not exist according to earlier cached lookups.",
382-
"File '/.ts/package.json' does not exist according to earlier cached lookups.",
383335
"File '/package.json' does not exist according to earlier cached lookups."
384336
]

tests/baselines/reference/nodeModulesImportAttributesTypeModeDeclarationEmitErrors(module=node20).errors.txt

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,7 @@
3939
/other3.ts(3,55): error TS1005: ';' expected.
4040
/other3.ts(3,56): error TS1128: Declaration or statement expected.
4141
/other3.ts(3,57): error TS2304: Cannot find name 'RequireInterface'.
42-
/other3.ts(4,21): error TS2322: Type '{ "resolution-mode": string; }[]' is not assignable to type 'ImportCallOptions'.
43-
Types of property 'with' are incompatible.
44-
Type '(index: number, value: { "resolution-mode": string; }) => { "resolution-mode": string; }[]' is not assignable to type 'ImportAttributes'.
45-
Index signature for type 'string' is missing in type '(index: number, value: { "resolution-mode": string; }) => { "resolution-mode": string; }[]'.
42+
/other3.ts(4,21): error TS2559: Type '{ "resolution-mode": string; }[]' has no properties in common with type 'ImportCallOptions'.
4643
/other3.ts(4,56): error TS2339: Property 'ImportInterface' does not exist on type 'Promise<{ default: typeof import("/node_modules/pkg/import"); }>'.
4744
/other3.ts(6,34): error TS1340: Module 'pkg' does not refer to a type, but is used as a type here. Did you mean 'typeof import('pkg')'?
4845
/other3.ts(6,48): error TS1005: '{' expected.
@@ -211,10 +208,7 @@
211208
!!! error TS2304: Cannot find name 'RequireInterface'.
212209
& import("pkg", [ {"resolution-mode": "import"} ]).ImportInterface;
213210
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
214-
!!! error TS2322: Type '{ "resolution-mode": string; }[]' is not assignable to type 'ImportCallOptions'.
215-
!!! error TS2322: Types of property 'with' are incompatible.
216-
!!! error TS2322: Type '(index: number, value: { "resolution-mode": string; }) => { "resolution-mode": string; }[]' is not assignable to type 'ImportAttributes'.
217-
!!! error TS2322: Index signature for type 'string' is missing in type '(index: number, value: { "resolution-mode": string; }) => { "resolution-mode": string; }[]'.
211+
!!! error TS2559: Type '{ "resolution-mode": string; }[]' has no properties in common with type 'ImportCallOptions'.
218212
~~~~~~~~~~~~~~~
219213
!!! error TS2339: Property 'ImportInterface' does not exist on type 'Promise<{ default: typeof import("/node_modules/pkg/import"); }>'.
220214

tests/baselines/reference/nodeModulesImportAttributesTypeModeDeclarationEmitErrors(module=nodenext).errors.txt

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,7 @@
3939
/other3.ts(3,55): error TS1005: ';' expected.
4040
/other3.ts(3,56): error TS1128: Declaration or statement expected.
4141
/other3.ts(3,57): error TS2304: Cannot find name 'RequireInterface'.
42-
/other3.ts(4,21): error TS2322: Type '{ "resolution-mode": string; }[]' is not assignable to type 'ImportCallOptions'.
43-
Types of property 'with' are incompatible.
44-
Type '(index: number, value: { "resolution-mode": string; }) => { "resolution-mode": string; }[]' is not assignable to type 'ImportAttributes'.
45-
Index signature for type 'string' is missing in type '(index: number, value: { "resolution-mode": string; }) => { "resolution-mode": string; }[]'.
42+
/other3.ts(4,21): error TS2559: Type '{ "resolution-mode": string; }[]' has no properties in common with type 'ImportCallOptions'.
4643
/other3.ts(4,56): error TS2339: Property 'ImportInterface' does not exist on type 'Promise<{ default: typeof import("/node_modules/pkg/import"); }>'.
4744
/other3.ts(6,34): error TS1340: Module 'pkg' does not refer to a type, but is used as a type here. Did you mean 'typeof import('pkg')'?
4845
/other3.ts(6,48): error TS1005: '{' expected.
@@ -211,10 +208,7 @@
211208
!!! error TS2304: Cannot find name 'RequireInterface'.
212209
& import("pkg", [ {"resolution-mode": "import"} ]).ImportInterface;
213210
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
214-
!!! error TS2322: Type '{ "resolution-mode": string; }[]' is not assignable to type 'ImportCallOptions'.
215-
!!! error TS2322: Types of property 'with' are incompatible.
216-
!!! error TS2322: Type '(index: number, value: { "resolution-mode": string; }) => { "resolution-mode": string; }[]' is not assignable to type 'ImportAttributes'.
217-
!!! error TS2322: Index signature for type 'string' is missing in type '(index: number, value: { "resolution-mode": string; }) => { "resolution-mode": string; }[]'.
211+
!!! error TS2559: Type '{ "resolution-mode": string; }[]' has no properties in common with type 'ImportCallOptions'.
218212
~~~~~~~~~~~~~~~
219213
!!! error TS2339: Property 'ImportInterface' does not exist on type 'Promise<{ default: typeof import("/node_modules/pkg/import"); }>'.
220214

tests/baselines/reference/nodeModulesImportTypeModeDeclarationEmitErrors1(module=node20).errors.txt

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,7 @@
3939
/other3.ts(3,55): error TS1005: ';' expected.
4040
/other3.ts(3,56): error TS1128: Declaration or statement expected.
4141
/other3.ts(3,57): error TS2304: Cannot find name 'RequireInterface'.
42-
/other3.ts(4,21): error TS2322: Type '{ "resolution-mode": string; }[]' is not assignable to type 'ImportCallOptions'.
43-
Types of property 'with' are incompatible.
44-
Type '(index: number, value: { "resolution-mode": string; }) => { "resolution-mode": string; }[]' is not assignable to type 'ImportAttributes'.
45-
Index signature for type 'string' is missing in type '(index: number, value: { "resolution-mode": string; }) => { "resolution-mode": string; }[]'.
42+
/other3.ts(4,21): error TS2559: Type '{ "resolution-mode": string; }[]' has no properties in common with type 'ImportCallOptions'.
4643
/other3.ts(4,56): error TS2339: Property 'ImportInterface' does not exist on type 'Promise<{ default: typeof import("/node_modules/pkg/import"); }>'.
4744
/other3.ts(6,34): error TS1340: Module 'pkg' does not refer to a type, but is used as a type here. Did you mean 'typeof import('pkg')'?
4845
/other3.ts(6,48): error TS1005: '{' expected.
@@ -206,10 +203,7 @@
206203
!!! error TS2304: Cannot find name 'RequireInterface'.
207204
& import("pkg", [ {"resolution-mode": "import"} ]).ImportInterface;
208205
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
209-
!!! error TS2322: Type '{ "resolution-mode": string; }[]' is not assignable to type 'ImportCallOptions'.
210-
!!! error TS2322: Types of property 'with' are incompatible.
211-
!!! error TS2322: Type '(index: number, value: { "resolution-mode": string; }) => { "resolution-mode": string; }[]' is not assignable to type 'ImportAttributes'.
212-
!!! error TS2322: Index signature for type 'string' is missing in type '(index: number, value: { "resolution-mode": string; }) => { "resolution-mode": string; }[]'.
206+
!!! error TS2559: Type '{ "resolution-mode": string; }[]' has no properties in common with type 'ImportCallOptions'.
213207
~~~~~~~~~~~~~~~
214208
!!! error TS2339: Property 'ImportInterface' does not exist on type 'Promise<{ default: typeof import("/node_modules/pkg/import"); }>'.
215209

tests/baselines/reference/nodeModulesImportTypeModeDeclarationEmitErrors1(module=nodenext).errors.txt

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,7 @@
3939
/other3.ts(3,55): error TS1005: ';' expected.
4040
/other3.ts(3,56): error TS1128: Declaration or statement expected.
4141
/other3.ts(3,57): error TS2304: Cannot find name 'RequireInterface'.
42-
/other3.ts(4,21): error TS2322: Type '{ "resolution-mode": string; }[]' is not assignable to type 'ImportCallOptions'.
43-
Types of property 'with' are incompatible.
44-
Type '(index: number, value: { "resolution-mode": string; }) => { "resolution-mode": string; }[]' is not assignable to type 'ImportAttributes'.
45-
Index signature for type 'string' is missing in type '(index: number, value: { "resolution-mode": string; }) => { "resolution-mode": string; }[]'.
42+
/other3.ts(4,21): error TS2559: Type '{ "resolution-mode": string; }[]' has no properties in common with type 'ImportCallOptions'.
4643
/other3.ts(4,56): error TS2339: Property 'ImportInterface' does not exist on type 'Promise<{ default: typeof import("/node_modules/pkg/import"); }>'.
4744
/other3.ts(6,34): error TS1340: Module 'pkg' does not refer to a type, but is used as a type here. Did you mean 'typeof import('pkg')'?
4845
/other3.ts(6,48): error TS1005: '{' expected.
@@ -206,10 +203,7 @@
206203
!!! error TS2304: Cannot find name 'RequireInterface'.
207204
& import("pkg", [ {"resolution-mode": "import"} ]).ImportInterface;
208205
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
209-
!!! error TS2322: Type '{ "resolution-mode": string; }[]' is not assignable to type 'ImportCallOptions'.
210-
!!! error TS2322: Types of property 'with' are incompatible.
211-
!!! error TS2322: Type '(index: number, value: { "resolution-mode": string; }) => { "resolution-mode": string; }[]' is not assignable to type 'ImportAttributes'.
212-
!!! error TS2322: Index signature for type 'string' is missing in type '(index: number, value: { "resolution-mode": string; }) => { "resolution-mode": string; }[]'.
206+
!!! error TS2559: Type '{ "resolution-mode": string; }[]' has no properties in common with type 'ImportCallOptions'.
213207
~~~~~~~~~~~~~~~
214208
!!! error TS2339: Property 'ImportInterface' does not exist on type 'Promise<{ default: typeof import("/node_modules/pkg/import"); }>'.
215209

0 commit comments

Comments
 (0)