Skip to content

Commit 499b10d

Browse files
committed
chore: init extension
1 parent a34201f commit 499b10d

File tree

9 files changed

+5174
-6
lines changed

9 files changed

+5174
-6
lines changed

.editorconfig

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# http://editorconfig.org
2+
3+
[*]
4+
indent_style = space
5+
indent_size = 2
6+
end_of_line = lf
7+
charset = utf-8
8+
trim_trailing_whitespace = true
9+
insert_final_newline = true
10+
11+
[*.json]
12+
insert_final_newline = ignore
13+
14+
[**.min.js]
15+
indent_style = ignore
16+
insert_final_newline = ignore
17+
18+
[MakeFile]
19+
indent_style = space
20+
21+
[*.md]
22+
trim_trailing_whitespace = false

.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ coverage
33
.DS_STORE
44
.nyc_output
55
.idea
6-
.vscode/
76
*.sublime-project
87
*.sublime-workspace
98
*.log

.vscode/launch.json

+6-5
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,10 @@
99
"name": "Extension",
1010
"type": "extensionHost",
1111
"request": "launch",
12-
"args": [
13-
"--extensionDevelopmentPath=${workspaceFolder}"
14-
]
15-
}
12+
"runtimeExecutable": "${execPath}",
13+
"args": ["--disable-extensions", "--extensionDevelopmentPath=${workspaceFolder}"],
14+
"outFiles": ["${workspaceFolder}/dist/**/*.js"],
15+
"preLaunchTask": "npm: dev"
16+
},
1617
]
17-
}
18+
}

bin/test.ts

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
import { assert } from '@japa/assert'
2+
import { snapshot } from '@japa/snapshot'
3+
import { specReporter } from '@japa/spec-reporter'
4+
import { configure, processCliArgs, run } from '@japa/runner'
5+
import { fileSystem } from '@japa/file-system'
6+
7+
/*
8+
|--------------------------------------------------------------------------
9+
| Configure tests
10+
|--------------------------------------------------------------------------
11+
|
12+
| The configure method accepts the configuration to configure the Japa
13+
| tests runner.
14+
|
15+
| The first method call "processCliArgs" process the command line arguments
16+
| and turns them into a config object. Using this method is not mandatory.
17+
|
18+
| Please consult japa.dev/runner-config for the config docs.
19+
*/
20+
configure({
21+
...processCliArgs(process.argv.slice(2)),
22+
...{
23+
files: ['./test/suites/pure/**/*.spec.ts'],
24+
plugins: [
25+
assert(),
26+
snapshot(),
27+
fileSystem(),
28+
],
29+
reporters: [specReporter()],
30+
importer: (filePath) => import(filePath),
31+
},
32+
})
33+
34+
/*
35+
|--------------------------------------------------------------------------
36+
| Run tests
37+
|--------------------------------------------------------------------------
38+
|
39+
| The following "run" method is required to execute all the tests.
40+
|
41+
*/
42+
run()

0 commit comments

Comments
 (0)