示例工程 19-namespaces-ts-modules

19-namespaces-ts-modules/03-outfile-removed/main.test.mjs

javascript · 0.2 KB

运行:19 · outfile-removed

点击「运行示例」后,左侧显示源码、右侧显示运行结果;console 输出会实时回传。

import { test } from 'node:test';
import assert from 'node:assert/strict';
import { run } from './dist/main.js';
 
test('本示例只演示配置错误,运行时为空', () => {
  assert.deepEqual(run(), []);
});