tsbundle/test/test.ts

18 lines
379 B
TypeScript
Raw Permalink Normal View History

2023-08-26 15:08:23 +02:00
import { expect, tap } from '@push.rocks/tapbundle';
2022-03-16 00:21:05 +01:00
import * as tsbundle from '../ts/index.js';
2019-04-20 19:59:33 +02:00
2022-03-16 00:21:05 +01:00
tap.test('should bundle with esbuild', async () => {
2021-07-23 15:45:23 +02:00
const tsbundleInstance = new tsbundle.TsBundle();
2022-03-16 00:21:05 +01:00
await tsbundleInstance.build(
2022-03-14 16:32:12 +01:00
process.cwd() + '/test',
'./ts_web/index.ts',
'./dist_manual/test.js',
2022-03-16 00:21:05 +01:00
{
bundler: 'esbuild'
}
2022-03-14 16:32:12 +01:00
);
});
2019-04-20 19:59:33 +02:00
2021-07-22 21:55:08 +02:00
2019-04-20 19:59:33 +02:00
tap.start();