12 lines
440 B
JavaScript
12 lines
440 B
JavaScript
import test from 'node:test';
|
|
import assert from 'node:assert/strict';
|
|
import { runScript } from './helpers/run-script.js';
|
|
|
|
test('一般腳本不再依賴時間追蹤設定', async () => {
|
|
const result = await runScript('report.js', ['--repo', 'plugins/tea-sdlc', '--week'], {
|
|
env: { TEA_CONFIG: '/tmp/nonexistent-tea-config' },
|
|
});
|
|
assert.equal(result.code, 1);
|
|
assert.equal(result.json.error.code, 'REPORT_UNAVAILABLE');
|
|
});
|