tsbundle/test/test.ts

18 lines
378 B
TypeScript
Raw Normal View History

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