mirror of
https://github.com/nodejs/node.git
synced 2024-12-01 16:10:02 +01:00
985e9c5fe5
PR-URL: https://github.com/nodejs/node/pull/33220 Fixes: https://github.com/nodejs/node/issues/33219 Reviewed-By: Guy Bedford <guybedford@gmail.com>
15 lines
333 B
JavaScript
15 lines
333 B
JavaScript
'use strict';
|
|
|
|
require('../common');
|
|
const fixtures = require('../common/fixtures');
|
|
const assert = require('assert');
|
|
const { pathToFileURL } = require('url');
|
|
|
|
{
|
|
assert.rejects(import('./'), /ERR_UNSUPPORTED_DIR_IMPORT/);
|
|
assert.rejects(
|
|
import(pathToFileURL(fixtures.path('packages', 'main'))),
|
|
/Did you mean/,
|
|
);
|
|
}
|