Skip to content

Commit

Permalink
test: line numbers in eval are not reliably source mapped
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed Sep 6, 2023
1 parent 1a56215 commit d693a91
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/test/repl/repl-environment.spec.ts
Expand Up @@ -160,7 +160,7 @@ test.suite('[eval], <repl>, and [stdin] execute with correct globals', (test) =>
modulePaths,
exportsTest: true,
// Note: vanilla node uses different name. See #1360
stackTest: expect.stringContaining(` at ${join(TEST_DIR, `[stdin].ts`)}:1:`),
stackTest: expect.stringContaining(` at ${join(TEST_DIR, `[stdin].ts`)}:`),
moduleAccessorsTest: null,
argv: [tsNodeExe],
},
Expand Down Expand Up @@ -189,7 +189,7 @@ test.suite('[eval], <repl>, and [stdin] execute with correct globals', (test) =>
// Note: vanilla node REPL does not set exports
exportsTest: true,
// Note: vanilla node uses different name. See #1360
stackTest: expect.stringContaining(` at ${join(TEST_DIR, replFile)}:4:`),
stackTest: expect.stringContaining(` at ${join(TEST_DIR, replFile)}:`),
moduleAccessorsTest: true,
argv: [tsNodeExe],
},
Expand Down Expand Up @@ -237,7 +237,7 @@ test.suite('[eval], <repl>, and [stdin] execute with correct globals', (test) =>
modulePaths: [...modulePaths],
exportsTest: true,
// Note: vanilla node uses different name. See #1360
stackTest: expect.stringContaining(` at ${join(TEST_DIR, `[eval].ts`)}:1:`),
stackTest: expect.stringContaining(` at ${join(TEST_DIR, `[eval].ts`)}:`),
moduleAccessorsTest: true,
argv: [tsNodeExe],
},
Expand All @@ -262,7 +262,7 @@ test.suite('[eval], <repl>, and [stdin] execute with correct globals', (test) =>
modulePaths,
exportsTest: true,
// Note: vanilla node uses different name. See #1360
stackTest: expect.stringContaining(` at ${join(TEST_DIR, `[eval].ts`)}:1:`),
stackTest: expect.stringContaining(` at ${join(TEST_DIR, `[eval].ts`)}:`),
moduleAccessorsTest: true,
argv: [tsNodeExe, './repl/script.js'],
},
Expand All @@ -287,7 +287,7 @@ test.suite('[eval], <repl>, and [stdin] execute with correct globals', (test) =>
modulePaths,
exportsTest: true,
// Note: vanilla node uses different name. See #1360
stackTest: expect.stringContaining(` at ${join(TEST_DIR, `[eval].ts`)}:1:`),
stackTest: expect.stringContaining(` at ${join(TEST_DIR, `[eval].ts`)}:`),
moduleAccessorsTest: true,
argv: [tsNodeExe, './does-not-exist.js'],
},
Expand All @@ -312,7 +312,7 @@ test.suite('[eval], <repl>, and [stdin] execute with correct globals', (test) =>
modulePaths,
exportsTest: true,
// Note: vanilla node uses different name. See #1360
stackTest: expect.stringContaining(` at ${join(TEST_DIR, `[eval].ts`)}:1:`),
stackTest: expect.stringContaining(` at ${join(TEST_DIR, `[eval].ts`)}:`),
moduleAccessorsTest: true,
argv: [tsNodeExe],
},
Expand Down Expand Up @@ -404,7 +404,7 @@ test.suite('[eval], <repl>, and [stdin] execute with correct globals', (test) =>
// moduleAccessorsTest: true,

// Note: vanilla node uses different name. See #1360
stackTest: expect.stringContaining(` at ${join(TEST_DIR, replFile)}:1:`),
stackTest: expect.stringContaining(` at ${join(TEST_DIR, replFile)}:`),
},
});
}
Expand Down Expand Up @@ -433,7 +433,7 @@ test.suite('[eval], <repl>, and [stdin] execute with correct globals', (test) =>
// Note: vanilla node REPL does not set exports
exportsTest: true,
// Note: vanilla node uses different name. See #1360
stackTest: expect.stringContaining(` at ${join(TEST_DIR, replFile)}:1:`),
stackTest: expect.stringContaining(` at ${join(TEST_DIR, replFile)}:`),
moduleAccessorsTest: true,
},
});
Expand Down

0 comments on commit d693a91

Please sign in to comment.