Skip to content

Commit f919c2a

Browse files
weswighamsandersn
andcommitted
Update tests/cases/conformance/node/nodeModulesTripleSlashReferenceModeOverride3.ts
Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>
1 parent ffe16a4 commit f919c2a

9 files changed

+11
-11
lines changed

tests/baselines/reference/nodeModulesTripleSlashReferenceModeOverride3(module=node12).errors.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
foo;
77
~~~
88
!!! error TS2304: Cannot find name 'foo'.
9-
bar; // bar should resolve while foo should not, since even though index.js is esm, the refernce is cjs
9+
bar; // bar should resolve while foo should not, since even though index.js is esm, the reference is cjs
1010
export {};
1111
==== /node_modules/pkg/package.json (0 errors) ====
1212
{

tests/baselines/reference/nodeModulesTripleSlashReferenceModeOverride3(module=node12).js

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ declare global {
2727
//// [index.ts]
2828
/// <reference types="pkg" resolution-mode="require" />
2929
foo;
30-
bar; // bar should resolve while foo should not, since even though index.js is esm, the refernce is cjs
30+
bar; // bar should resolve while foo should not, since even though index.js is esm, the reference is cjs
3131
export {};
3232

3333
//// [index.js]
3434
/// <reference types="pkg" resolution-mode="require" />
3535
foo;
36-
bar; // bar should resolve while foo should not, since even though index.js is esm, the refernce is cjs
36+
bar; // bar should resolve while foo should not, since even though index.js is esm, the reference is cjs
3737
export {};

tests/baselines/reference/nodeModulesTripleSlashReferenceModeOverride3(module=node12).symbols

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
=== /index.ts ===
22
/// <reference types="pkg" resolution-mode="require" />
33
foo;
4-
bar; // bar should resolve while foo should not, since even though index.js is esm, the refernce is cjs
4+
bar; // bar should resolve while foo should not, since even though index.js is esm, the reference is cjs
55
>bar : Symbol(bar, Decl(require.d.ts, 2, 7))
66

77
export {};

tests/baselines/reference/nodeModulesTripleSlashReferenceModeOverride3(module=node12).types

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
foo;
44
>foo : any
55

6-
bar; // bar should resolve while foo should not, since even though index.js is esm, the refernce is cjs
6+
bar; // bar should resolve while foo should not, since even though index.js is esm, the reference is cjs
77
>bar : number
88

99
export {};

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
foo;
77
~~~
88
!!! error TS2304: Cannot find name 'foo'.
9-
bar; // bar should resolve while foo should not, since even though index.js is esm, the refernce is cjs
9+
bar; // bar should resolve while foo should not, since even though index.js is esm, the reference is cjs
1010
export {};
1111
==== /node_modules/pkg/package.json (0 errors) ====
1212
{

tests/baselines/reference/nodeModulesTripleSlashReferenceModeOverride3(module=nodenext).js

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ declare global {
2727
//// [index.ts]
2828
/// <reference types="pkg" resolution-mode="require" />
2929
foo;
30-
bar; // bar should resolve while foo should not, since even though index.js is esm, the refernce is cjs
30+
bar; // bar should resolve while foo should not, since even though index.js is esm, the reference is cjs
3131
export {};
3232

3333
//// [index.js]
3434
/// <reference types="pkg" resolution-mode="require" />
3535
foo;
36-
bar; // bar should resolve while foo should not, since even though index.js is esm, the refernce is cjs
36+
bar; // bar should resolve while foo should not, since even though index.js is esm, the reference is cjs
3737
export {};

tests/baselines/reference/nodeModulesTripleSlashReferenceModeOverride3(module=nodenext).symbols

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
=== /index.ts ===
22
/// <reference types="pkg" resolution-mode="require" />
33
foo;
4-
bar; // bar should resolve while foo should not, since even though index.js is esm, the refernce is cjs
4+
bar; // bar should resolve while foo should not, since even though index.js is esm, the reference is cjs
55
>bar : Symbol(bar, Decl(require.d.ts, 2, 7))
66

77
export {};

tests/baselines/reference/nodeModulesTripleSlashReferenceModeOverride3(module=nodenext).types

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
foo;
44
>foo : any
55

6-
bar; // bar should resolve while foo should not, since even though index.js is esm, the refernce is cjs
6+
bar; // bar should resolve while foo should not, since even though index.js is esm, the reference is cjs
77
>bar : number
88

99
export {};

tests/cases/conformance/node/nodeModulesTripleSlashReferenceModeOverride3.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,5 @@ declare global {
2828
// @filename: /index.ts
2929
/// <reference types="pkg" resolution-mode="require" />
3030
foo;
31-
bar; // bar should resolve while foo should not, since even though index.js is esm, the refernce is cjs
31+
bar; // bar should resolve while foo should not, since even though index.js is esm, the reference is cjs
3232
export {};

0 commit comments

Comments
 (0)