We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 751c0df commit abc616eCopy full SHA for abc616e
src/test/esm-loader.spec.ts
@@ -117,7 +117,23 @@ if (nodeSupportsImportAssertions) {
117
'parentURL',
118
]);
119
} else if (json.loadContextKeys) {
120
- expect(json.loadContextKeys).toEqual(['format', 'importAssertions']);
+ try {
121
+ expect(json.loadContextKeys).toEqual([
122
+ 'format',
123
+ 'importAssertions',
124
+ ]);
125
+ } catch (e) {
126
+ // HACK for https://github.com/TypeStrong/ts-node/issues/1641
127
+ if (process.version.includes('nightly')) {
128
129
130
131
+ 'parentURL',
132
133
+ } else {
134
+ throw e;
135
+ }
136
137
} else {
138
throw new Error('Unexpected stdout in test.');
139
}
0 commit comments