Skip to content

Commit

Permalink
test: use different text for warning assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
mdonnalley committed Oct 30, 2023
1 parent a01e14c commit 9809042
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/config/ts-node.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@ describe('tsPath', () => {
const stderrStub = sandbox.stub(write, 'stderr')
const result = await configTsNode.tsPath(root, tsSource)
expect(result).to.equal(join(root, tsSource))
expect(stripAnsi(stderrStub.firstCall.firstArg).split('\n').join(' ')).to.include('Falling back to compiled source')
expect(stripAnsi(stderrStub.firstCall.firstArg).split('\n').join(' ')).to.include(
'Warning: Could not parse tsconfig.json',
)
})
})

0 comments on commit 9809042

Please sign in to comment.