2022-03-11 16:36:27 +00:00
|
|
|
import { tap, expect, expectAsync } from '@pushrocks/tapbundle';
|
2018-07-25 18:56:42 +00:00
|
|
|
|
2022-03-12 18:05:46 +00:00
|
|
|
import * as tsbuild from '../ts/index.js';
|
2018-07-25 18:56:42 +00:00
|
|
|
|
|
|
|
let assetfiles: string[] = ['./test/assets/tocompile.ts', './test/assets/tocompile2.ts'];
|
|
|
|
|
|
|
|
let assetfiles2 = {
|
|
|
|
'./test/assets/**/!(*.d.ts|*.js|output)': './test/assets/output'
|
|
|
|
};
|
|
|
|
|
|
|
|
tap.test('should convert files from an array with single files to output', async tools => {
|
2022-03-11 16:36:27 +00:00
|
|
|
tsbuild.compileFileArray(assetfiles, { outDir: './test/assets/output' });
|
2018-07-25 18:56:42 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
tap.test('should convert files from an array with single files to output', async tools => {
|
2022-03-11 16:36:27 +00:00
|
|
|
tsbuild.compileGlobStringObject(assetfiles2);
|
2018-07-25 18:56:42 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
tap.start();
|