-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy pathtestUtils.ts
More file actions
57 lines (54 loc) · 1.55 KB
/
Copy pathtestUtils.ts
File metadata and controls
57 lines (54 loc) · 1.55 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
import { join } from "node:path"
declare const __DIST_ROOT__: string
export const wasmDir = join(__DIST_ROOT__, "wasm")
export const wasmPaths = {
core: join(wasmDir, "web-tree-sitter.wasm"),
python: join(wasmDir, "tree-sitter-python.wasm"),
}
export const fixturesPath = join(__DIST_ROOT__, "..", "src", "test", "fixtures")
export const fixtures = {
standard: {
root: join(fixturesPath, "standard"),
mainPy: join(fixturesPath, "standard", "app", "main.py"),
usersPy: join(fixturesPath, "standard", "app", "routes", "users.py"),
initPy: join(fixturesPath, "standard", "app", "__init__.py"),
},
flat: {
root: join(fixturesPath, "flat"),
mainPy: join(fixturesPath, "flat", "main.py"),
},
namespace: {
root: join(fixturesPath, "namespace"),
mainPy: join(fixturesPath, "namespace", "app", "main.py"),
},
reexport: {
root: join(fixturesPath, "reexport"),
mainPy: join(fixturesPath, "reexport", "app", "main.py"),
initPy: join(
fixturesPath,
"reexport",
"app",
"integrations",
"__init__.py",
),
},
sameFile: {
root: join(fixturesPath, "same-file"),
mainPy: join(fixturesPath, "same-file", "main.py"),
},
multiApp: {
root: join(fixturesPath, "multi-app"),
mainPy: join(fixturesPath, "multi-app", "main.py"),
},
aliasedImport: {
root: join(fixturesPath, "aliased-import"),
mainPy: join(fixturesPath, "aliased-import", "app", "main.py"),
tokensPy: join(
fixturesPath,
"aliased-import",
"app",
"routes",
"tokens.py",
),
},
}