diff --git a/__tests__/push/bundler.test.ts b/__tests__/push/bundler.test.ts index 610e25d3..9423f40c 100644 --- a/__tests__/push/bundler.test.ts +++ b/__tests__/push/bundler.test.ts @@ -111,21 +111,21 @@ describe('Bundler', () => { }); it('build journey', async () => { - const content = await bundler.build(journeyFile, generateTempPath()); + const content = await bundler.build(journeyFile, '', generateTempPath()); await validateZip(content); }); it('bundle should be idempotent', async () => { - const content1 = await bundler.build(journeyFile, generateTempPath()); - const content2 = await bundler.build(journeyFile, generateTempPath()); + const content1 = await bundler.build(journeyFile, '', generateTempPath()); + const content2 = await bundler.build(journeyFile, '', generateTempPath()); expect(content1).toEqual(content2); }); it('throw errors on incorrect path', async () => { try { - await bundler.build(join(PROJECT_DIR, 'blah.ts'), generateTempPath()); + await bundler.build(join(PROJECT_DIR, 'blah.ts'), '', generateTempPath()); } catch (e) { - expect(e.message).toContain('Build failed'); + expect(e.message).toContain('no such file or directory'); } }); }); diff --git a/src/push/transform-journey.ts b/src/push/transform-journey.ts index eba40a44..f31bc2e9 100644 --- a/src/push/transform-journey.ts +++ b/src/push/transform-journey.ts @@ -96,6 +96,9 @@ export async function transform(absPath: string, journeyName: string) { retainLines: true, babelrc: false, configFile: false, + parserOpts: { + plugins: ['typescript'], + }, plugins: [ [ JourneyTransformPlugin,