-
-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
5 changed files
with
47 additions
and
31 deletions.
There are no files selected for viewing
20 changes: 20 additions & 0 deletions
20
packages/integrate/__tests__/sourcemaps/__snapshots__/sourcemaps.spec.ts.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Snapshot report for `packages/integrate/__tests__/sourcemaps/sourcemaps.spec.ts` | ||
|
||
The actual snapshot is saved in `sourcemaps.spec.ts.snap`. | ||
|
||
Generated by [AVA](https://avajs.dev). | ||
|
||
## should work with sourcemaps | ||
|
||
> Snapshot 1 | ||
`Error: ␊ | ||
at /Users/longyinan/workspace/github/swc-node/packages/integrate/__tests__/sourcemaps/sourcemaps.spec.ts:23:14␊ | ||
at Test.callFn (file:///Users/longyinan/workspace/github/swc-node/node_modules/.pnpm/ava@5.2.0/node_modules/ava/lib/test.js:507:21)␊ | ||
at Test.run (file:///Users/longyinan/workspace/github/swc-node/node_modules/.pnpm/ava@5.2.0/node_modules/ava/lib/test.js:520:23)␊ | ||
at Runner.runSingle (file:///Users/longyinan/workspace/github/swc-node/node_modules/.pnpm/ava@5.2.0/node_modules/ava/lib/runner.js:285:33)␊ | ||
at Runner.runTest (file:///Users/longyinan/workspace/github/swc-node/node_modules/.pnpm/ava@5.2.0/node_modules/ava/lib/runner.js:367:30)␊ | ||
at processTicksAndRejections (node:internal/process/task_queues:96:5)␊ | ||
at async Promise.all (index 0)␊ | ||
at file:///Users/longyinan/workspace/github/swc-node/node_modules/.pnpm/ava@5.2.0/node_modules/ava/lib/runner.js:532:21␊ | ||
at Runner.start (file:///Users/longyinan/workspace/github/swc-node/node_modules/.pnpm/ava@5.2.0/node_modules/ava/lib/runner.js:540:15)` |
Binary file added
BIN
+432 Bytes
packages/integrate/__tests__/sourcemaps/__snapshots__/sourcemaps.spec.ts.snap
Binary file not shown.
24 changes: 24 additions & 0 deletions
24
packages/integrate/__tests__/sourcemaps/sourcemaps.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import test from 'ava' | ||
|
||
// @ts-expect-error | ||
interface _Unused1 {} | ||
// @ts-expect-error | ||
interface _Unused2 {} | ||
// @ts-expect-error | ||
interface _Unused3 {} | ||
// @ts-expect-error | ||
interface _Unused4 {} | ||
// @ts-expect-error | ||
interface _Unused5 {} | ||
// @ts-expect-error | ||
interface _Unused6 {} | ||
// @ts-expect-error | ||
interface _Unused7 {} | ||
// @ts-expect-error | ||
interface _Unused8 {} | ||
// @ts-expect-error | ||
interface _Unused9 {} | ||
|
||
test('should work with sourcemaps', (t) => { | ||
t.snapshot(new Error().stack) | ||
}) |
20 changes: 0 additions & 20 deletions
20
packages/register/__test__/create-sourcemap-option.spec.ts
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters