import { tap, expect } from '@git.zone/tstest/tapbundle'; import { TsCompiler } from '../ts/index.js'; const assetfiles: string[] = ['./test/assets/tocompile.ts', './test/assets/tocompile2.ts']; const assetfiles2 = { './test/assets/**/!(*.d.ts|*.js|output)': './test/assets/output', }; tap.test('should compile files from an array', async () => { const compiler = new TsCompiler(); await compiler.compileFilesOrThrow(assetfiles, { outDir: './test/assets/output' }); }); tap.test('should compile files from glob pattern object', async () => { const compiler = new TsCompiler(); await compiler.compileGlob(assetfiles2); }); tap.start();