diff --git a/src/index.spec.ts b/src/index.spec.ts index d56de6834..4fd66b986 100644 --- a/src/index.spec.ts +++ b/src/index.spec.ts @@ -379,7 +379,7 @@ describe('ts-node', function () { try { require('../tests/with-jsx.tsx') } catch (error) { - expect(error.stack).to.contain('SyntaxError: Unexpected token <\n') + expect(error.stack).to.contain('SyntaxError: Unexpected token') } expect(compiled).to.match(SOURCE_MAP_REGEXP)