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.
@@ -26,7 +26,8 @@
26
26
  },
27
27
  "files": [
28
28
  "dist",
29
- "static"
29
+ "static",
30
+ "test"
30
31
  ],
31
32
  "scripts": {
32
33
  "clean": "rimraf dist tsconfig.build.tsbuildinfo",
@@ -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.ts'));
27
+ files.push(resolveTemplatePath('test/done-only.test.js'));
28
28
  }
29
29
  else {
30
- files.push(resolveTemplatePath('test/done.test.ts'));
30
+ files.push(resolveTemplatePath('test/done.test.js'));
31
31
  }
32
32
  // concurrency
33
33
  let concurrency = 1;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "vona-cli-set-api",
3
3
  "type": "module",
4
- "version": "1.0.36",
4
+ "version": "1.0.39",
5
5
  "description": "vona cli-set-api",
6
6
  "publishConfig": {
7
7
  "access": "public"
File without changes