Add test.skip for Node.js bug in 'should not transform external' babel.spec.ts

This commit is contained in:
Mathias Leppich 2024-09-12 12:23:48 +02:00
parent e7d07bc797
commit 412e05bc8d

View file

@ -148,5 +148,6 @@ test('should not transform external', async ({ runInlineTest }) => {
` `
}); });
expect(result.exitCode).toBe(1); expect(result.exitCode).toBe(1);
test.skip(result.output.includes('Error: This is caused by either a bug in Node.js or incorrect usage of Node.js internals'), 'Node.js bug');
expect(result.output).toContain('Cannot use import statement outside a module'); expect(result.output).toContain('Cannot use import statement outside a module');
}); });