From 11707a45618c74ff810e708018c4927f67fc79c1 Mon Sep 17 00:00:00 2001 From: Blake Embrey Date: Thu, 10 Oct 2019 09:24:56 -0700 Subject: [PATCH] Fix JSX test on latest node.js error output --- src/index.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)