-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #66 from azizghuloum/vitest-support
vitest support
- Loading branch information
Showing
7 changed files
with
114 additions
and
2 deletions.
There are no files selected for viewing
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
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,82 @@ | ||
{ | ||
"cid": "test-project/test1.test.rts rewrite-ts-visualized 0.0.0", | ||
"cookie": "rewrite-ts-016", | ||
"imports": [ | ||
{ | ||
"pkg": {"name": "vitest", "version": "2.1.8"}, | ||
"pkg_relative_path": "./dist/index.d.ts" | ||
} | ||
], | ||
"exported_identifiers": {}, | ||
"context": {}, | ||
"unit": { | ||
"cu_id": "test-project/test1.test.rts rewrite-ts-visualized 0.0.0", | ||
"store": { | ||
"r0": { | ||
"type": "rib", | ||
"normal_env": { | ||
"suite": [ | ||
[ | ||
[ | ||
"test-project/test1.test.rts rewrite-ts-visualized 0.0.0", | ||
["top", null] | ||
], | ||
{ | ||
"cuid": "dist/index.d.ts vitest 2.1.8", | ||
"name": "e.suite.@vitest/runner" | ||
} | ||
] | ||
], | ||
"test": [ | ||
[ | ||
[ | ||
"test-project/test1.test.rts rewrite-ts-visualized 0.0.0", | ||
["top", null] | ||
], | ||
{ | ||
"cuid": "dist/index.d.ts vitest 2.1.8", | ||
"name": "e.test.@vitest/runner" | ||
} | ||
] | ||
], | ||
"expect": [ | ||
[ | ||
[ | ||
"test-project/test1.test.rts rewrite-ts-visualized 0.0.0", | ||
["top", null] | ||
], | ||
{"cuid": "dist/index.d.ts vitest 2.1.8", "name": "l.globalExpect"} | ||
] | ||
] | ||
}, | ||
"types_env": { | ||
"suite": [ | ||
[ | ||
[ | ||
"test-project/test1.test.rts rewrite-ts-visualized 0.0.0", | ||
["top", null] | ||
], | ||
{ | ||
"cuid": "dist/index.d.ts vitest 2.1.8", | ||
"name": "e.suite.@vitest/runner" | ||
} | ||
] | ||
], | ||
"test": [ | ||
[ | ||
[ | ||
"test-project/test1.test.rts rewrite-ts-visualized 0.0.0", | ||
["top", null] | ||
], | ||
{ | ||
"cuid": "dist/index.d.ts vitest 2.1.8", | ||
"name": "e.test.@vitest/runner" | ||
} | ||
] | ||
] | ||
}, | ||
"libs": ["es2024.full"] | ||
} | ||
} | ||
} | ||
} |
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,6 @@ | ||
import { suite as suite_1, test as test_2, expect as expect_3 } from "vitest"; | ||
suite_1("sample test", () => { | ||
test_2("should work", () => { | ||
expect_3(5).toBe(5); | ||
}); | ||
}); |
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,7 @@ | ||
import { expect, test, suite } from "vitest"; | ||
|
||
suite("sample test", () => { | ||
test("should work", () => { | ||
expect(5).toBe(5); | ||
}); | ||
}); |
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,2 @@ | ||
/* This is an automatically generated file. Do not edit. */ | ||
import { } from "./.rts/test1.test.rts.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 |
---|---|---|
@@ -1 +1 @@ | ||
{"root":["./files.test.ts","./generate-stdlibs.test.ts","./vite.config.ts","./vitest.config.ts","./rtsc/compile-all.ts","./rtsc/watch.ts","./src/assert.ts","./src/ast.ts","./src/data.ts","./src/expander.ts","./src/fs-helpers.ts","./src/generate-stdlibs.ts","./src/generated-stdlibs.ts","./src/global-module.ts","./src/library-manager.ts","./src/llhelpers.ts","./src/parse-dts.ts","./src/parse.ts","./src/pprint.ts","./src/preexpand-handlers.ts","./src/preexpand-helpers.ts","./src/proxy-code.ts","./src/serialize.ts","./src/stx-error.ts","./src/stx.ts","./src/syntax-core-patterns.ts","./src/syntax-structures.ts","./src/tags.ts","./src/zipper.ts","./test-project/index.ts","./test-project/main.rts.ts","./test-project/mod.rts.ts","./ui/astvis.tsx","./ui/app.tsx","./ui/editor.tsx","./ui/main.tsx","./ui/vite-env.d.ts"],"version":"5.7.2"} | ||
{"root":["./files.test.ts","./generate-stdlibs.test.ts","./vite.config.ts","./vitest.config.ts","./rtsc/compile-all.ts","./rtsc/watch.ts","./src/assert.ts","./src/ast.ts","./src/data.ts","./src/expander.ts","./src/fs-helpers.ts","./src/generate-stdlibs.ts","./src/generated-stdlibs.ts","./src/global-module.ts","./src/library-manager.ts","./src/llhelpers.ts","./src/parse-dts.ts","./src/parse.ts","./src/pprint.ts","./src/preexpand-handlers.ts","./src/preexpand-helpers.ts","./src/proxy-code.ts","./src/serialize.ts","./src/stx-error.ts","./src/stx.ts","./src/syntax-core-patterns.ts","./src/syntax-structures.ts","./src/tags.ts","./src/zipper.ts","./test-project/index.ts","./test-project/main.rts.ts","./test-project/mod.rts.ts","./test-project/test1.test.rts.ts","./ui/astvis.tsx","./ui/app.tsx","./ui/editor.tsx","./ui/main.tsx","./ui/vite-env.d.ts"],"version":"5.7.2"} |
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