blob: d7a91aaa38b8e3e77a8af721d0b45e283500bebf (
plain)
1
2
3
4
5
6
7
8
9
10
|
// Flags: --experimental-modules --experimental-loader ./test/fixtures/es-module-loaders/loader-invalid-format.mjs
import { expectsError, mustCall } from '../common/index.mjs';
import assert from 'assert';
import('../fixtures/es-modules/test-esm-ok.mjs')
.then(assert.fail, expectsError({
code: 'ERR_UNKNOWN_MODULE_FORMAT',
message: /Unknown module format: esm/
}))
.then(mustCall());
|