diff --git a/test/build-engine/engine-js.test.ts b/test/build-engine/engine-js.test.ts index ff87d72..781ca2b 100644 --- a/test/build-engine/engine-js.test.ts +++ b/test/build-engine/engine-js.test.ts @@ -1,4 +1,4 @@ -import { buildEngine, BuildEngineResult } from '@ccbuild/build-engine'; +import { buildEngine, BuildEngineResult, enumerateAllDependents, enumerateDependentAssets, enumerateDependentChunks } from '@ccbuild/build-engine'; import * as ps from 'path'; import * as fs from 'fs-extra'; import del from 'del'; @@ -137,9 +137,9 @@ describe('engine-js', () => { split: true, }); - expect(buildEngine.enumerateAllDependents(res, features)).toMatchSnapshot(); - expect(buildEngine.enumerateDependentChunks(res, features)).toMatchSnapshot(); - expect(buildEngine.enumerateDependentAssets(res, features)).toMatchSnapshot(); + expect(enumerateAllDependents(res, features)).toMatchSnapshot(); + expect(enumerateDependentChunks(res, features)).toMatchSnapshot(); + expect(enumerateDependentAssets(res, features)).toMatchSnapshot(); await del(out, { force: true }); }); diff --git a/test/matrix-options.test.ts b/test/matrix-options.test.ts index 09e0187..f99b74a 100644 --- a/test/matrix-options.test.ts +++ b/test/matrix-options.test.ts @@ -1,8 +1,8 @@ -import { buildEngine } from '@ccbuild/build-engine'; +import { buildEngine, BuildEngineOptions } from '@ccbuild/build-engine'; import { genOptionsFromMatrix } from './matrix-options'; test('matrix options', async () => { - const optionList = genOptionsFromMatrix({ + const optionList = genOptionsFromMatrix({ engine: ['./test-engine-source', './test-engine-source-without-symlink'], out: ['./lib-matrix-options'], platform: ['ALIPAY', 'OPEN_HARMONY', 'HTML5'], diff --git a/test/matrix-options.ts b/test/matrix-options.ts index 0fddbc4..8bc9e49 100644 --- a/test/matrix-options.ts +++ b/test/matrix-options.ts @@ -19,7 +19,7 @@ export interface OptionData { * The matrix option can help us list all combinations to avoid missing test cases. * * @example - * const multipleBuildOptions = genOptionsFromMatrix({ + * const multipleBuildOptions = genOptionsFromMatrix({ * engine: ['./test-engine-source', './test-engine-source-without-symlink'], * platform: ['ALIPAY', 'OPEN_HARMONY', 'HTML5'], * });