generator-code 1.7.7 → 1.7.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/generators/app/dependencyVersions/package.json +14 -15
- package/generators/app/templates/ext-command-js/package.json +0 -1
- package/generators/app/templates/ext-command-js/test/suite/index.js +9 -6
- package/generators/app/templates/ext-command-ts/package.json +0 -1
- package/generators/app/templates/ext-command-ts/src/test/suite/index.ts +9 -7
- package/generators/app/templates/ext-command-ts/vscode-webpack/package.json +0 -1
- package/generators/app/templates/ext-notebook-renderer/package.json +0 -1
- package/generators/app/templates/ext-notebook-renderer/src/test/suite/index.ts +10 -7
- package/package.json +1 -1
|
@@ -4,30 +4,29 @@
|
|
|
4
4
|
"version": "0.0.0",
|
|
5
5
|
"private": true,
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@types/glob": "^8.1.0",
|
|
8
7
|
"@types/mocha": "^10.0.1",
|
|
9
|
-
"@types/node": "
|
|
10
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
11
|
-
"@typescript-eslint/parser": "^
|
|
12
|
-
"eslint": "^8.
|
|
13
|
-
"glob": "^
|
|
8
|
+
"@types/node": "16.x",
|
|
9
|
+
"@typescript-eslint/eslint-plugin": "^6.4.1",
|
|
10
|
+
"@typescript-eslint/parser": "^6.4.1",
|
|
11
|
+
"eslint": "^8.47.0",
|
|
12
|
+
"glob": "^10.3.3",
|
|
14
13
|
"mocha": "^10.2.0",
|
|
15
|
-
"typescript": "^5.1.
|
|
16
|
-
"@vscode/test-electron": "^2.3.
|
|
17
|
-
"@vscode/test-web": "^0.0.
|
|
14
|
+
"typescript": "^5.1.6",
|
|
15
|
+
"@vscode/test-electron": "^2.3.4",
|
|
16
|
+
"@vscode/test-web": "^0.0.45",
|
|
18
17
|
"@types/webpack-env": "^1.18.1",
|
|
19
18
|
"@types/vscode-notebook-renderer": "^1.72.0",
|
|
20
|
-
"concurrently": "^
|
|
19
|
+
"concurrently": "^8.2.1",
|
|
21
20
|
"css-loader": "^6.8.1",
|
|
22
|
-
"fork-ts-checker-webpack-plugin": "^
|
|
21
|
+
"fork-ts-checker-webpack-plugin": "^8.0.0",
|
|
23
22
|
"style-loader": "^3.3.3",
|
|
24
|
-
"ts-loader": "^9.4.
|
|
23
|
+
"ts-loader": "^9.4.4",
|
|
25
24
|
"vscode-dts": "^0.3.3",
|
|
26
25
|
"vscode-notebook-error-overlay": "^1.0.1",
|
|
27
|
-
"webpack": "^5.
|
|
26
|
+
"webpack": "^5.88.2",
|
|
28
27
|
"util": "^0.12.5",
|
|
29
|
-
"webpack-cli": "^5.1.
|
|
30
|
-
"webpack-dev-server": "^4.15.
|
|
28
|
+
"webpack-cli": "^5.1.4",
|
|
29
|
+
"webpack-dev-server": "^4.15.1",
|
|
31
30
|
"assert": "^2.0.0",
|
|
32
31
|
"process": "^0.11.10"
|
|
33
32
|
}
|
|
@@ -12,14 +12,17 @@ function run() {
|
|
|
12
12
|
const testsRoot = path.resolve(__dirname, '..');
|
|
13
13
|
|
|
14
14
|
return new Promise((c, e) => {
|
|
15
|
-
glob('**/**.test.js', { cwd: testsRoot }
|
|
16
|
-
|
|
17
|
-
return e(err);
|
|
18
|
-
}
|
|
15
|
+
const testFiles = new glob.Glob('**/**.test.js', { cwd: testsRoot });
|
|
16
|
+
const testFileStream = testFiles.stream();
|
|
19
17
|
|
|
18
|
+
testFileStream.on('data', (file) => {
|
|
20
19
|
// Add files to the test suite
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
mocha.addFile(path.resolve(testsRoot, file));
|
|
21
|
+
});
|
|
22
|
+
testFileStream.on('error', (err) => {
|
|
23
|
+
e(err);
|
|
24
|
+
});
|
|
25
|
+
testFileStream.on('end', () => {
|
|
23
26
|
try {
|
|
24
27
|
// Run the mocha test
|
|
25
28
|
mocha.run(failures => {
|
|
@@ -12,14 +12,16 @@ export function run(): Promise<void> {
|
|
|
12
12
|
const testsRoot = path.resolve(__dirname, '..');
|
|
13
13
|
|
|
14
14
|
return new Promise((c, e) => {
|
|
15
|
-
glob(
|
|
16
|
-
|
|
17
|
-
return e(err);
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
// Add files to the test suite
|
|
21
|
-
files.forEach(f => mocha.addFile(path.resolve(testsRoot, f)));
|
|
15
|
+
const testFiles = new glob.Glob("**/**.test.js", { cwd: testsRoot });
|
|
16
|
+
const testFileStream = testFiles.stream();
|
|
22
17
|
|
|
18
|
+
testFileStream.on("data", (file) => {
|
|
19
|
+
mocha.addFile(path.resolve(testsRoot, file));
|
|
20
|
+
});
|
|
21
|
+
testFileStream.on("error", (err) => {
|
|
22
|
+
e(err);
|
|
23
|
+
});
|
|
24
|
+
testFileStream.on("end", () => {
|
|
23
25
|
try {
|
|
24
26
|
// Run the mocha test
|
|
25
27
|
mocha.run(failures => {
|
|
@@ -6,19 +6,22 @@ export function run(): Promise<void> {
|
|
|
6
6
|
// Create the mocha test
|
|
7
7
|
const mocha = new Mocha({
|
|
8
8
|
ui: 'tdd',
|
|
9
|
+
color: true
|
|
9
10
|
});
|
|
10
11
|
|
|
11
12
|
const testsRoot = path.resolve(__dirname, '..');
|
|
12
13
|
|
|
13
14
|
return new Promise((c, e) => {
|
|
14
|
-
glob(
|
|
15
|
-
|
|
16
|
-
return e(err);
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
// Add files to the test suite
|
|
20
|
-
files.forEach(f => mocha.addFile(path.resolve(testsRoot, f)));
|
|
15
|
+
const testFiles = new glob.Glob("**/**.test.js", { cwd: testsRoot });
|
|
16
|
+
const testFileStream = testFiles.stream();
|
|
21
17
|
|
|
18
|
+
testFileStream.on("data", (file) => {
|
|
19
|
+
mocha.addFile(path.resolve(testsRoot, file));
|
|
20
|
+
});
|
|
21
|
+
testFileStream.on("error", (err) => {
|
|
22
|
+
e(err);
|
|
23
|
+
});
|
|
24
|
+
testFileStream.on("end", () => {
|
|
22
25
|
try {
|
|
23
26
|
// Run the mocha test
|
|
24
27
|
mocha.run(failures => {
|