vona-cli-set-api 1.0.36 → 1.0.39
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/cli/templates/create/project/basic/boilerplate/src/suite/a-home/modules/home-index/package.json +2 -1
- package/cli/templates/create/project/basic/boilerplate/src/suite/a-home/modules/home-index/test/home.test.ts +12 -0
- package/dist/lib/bean/toolsBin/test.js +3 -3
- package/package.json +1 -1
- /package/templates/test/{done-only.test.ts → done-only.test.js} +0 -0
- /package/templates/test/{done.test.ts → done.test.js} +0 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import assert from 'node:assert';
|
|
2
|
+
import { describe, it } from 'node:test';
|
|
3
|
+
import { app } from 'vona-mock';
|
|
4
|
+
|
|
5
|
+
describe.only('home.test.ts', () => {
|
|
6
|
+
it('action:home', async () => {
|
|
7
|
+
await app.bean.executor.mockCtx(async () => {
|
|
8
|
+
const res = await app.bean.executor.performAction('get', '//');
|
|
9
|
+
assert.equal(res, 'Hello Vona!');
|
|
10
|
+
}, { locale: 'en-us' });
|
|
11
|
+
});
|
|
12
|
+
});
|
|
@@ -2,11 +2,11 @@ import { createWriteStream } from 'node:fs';
|
|
|
2
2
|
import os from 'node:os';
|
|
3
3
|
import path from 'node:path';
|
|
4
4
|
import { run } from 'node:test';
|
|
5
|
+
import { lcov, tap } from 'node:test/reporters';
|
|
5
6
|
import { sleep } from '@cabloy/utils';
|
|
6
7
|
import TableClass from 'cli-table3';
|
|
7
8
|
import fse from 'fs-extra';
|
|
8
9
|
import { globby } from 'globby';
|
|
9
|
-
import { lcov, tap } from 'node:test/reporters';
|
|
10
10
|
import { closeApp, createGeneralApp } from 'vona-core';
|
|
11
11
|
import whyIsNodeRunning from 'why-is-node-running';
|
|
12
12
|
import { resolveTemplatePath } from "../../utils.js";
|
|
@@ -24,10 +24,10 @@ async function testRun(projectPath, coverage, patterns) {
|
|
|
24
24
|
ignore: patternsIgnore,
|
|
25
25
|
});
|
|
26
26
|
if (process.env.TEST_ONLY === 'true') {
|
|
27
|
-
files.push(resolveTemplatePath('test/done-only.test.
|
|
27
|
+
files.push(resolveTemplatePath('test/done-only.test.js'));
|
|
28
28
|
}
|
|
29
29
|
else {
|
|
30
|
-
files.push(resolveTemplatePath('test/done.test.
|
|
30
|
+
files.push(resolveTemplatePath('test/done.test.js'));
|
|
31
31
|
}
|
|
32
32
|
// concurrency
|
|
33
33
|
let concurrency = 1;
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|