summaryrefslogtreecommitdiff
path: root/test/es-module/test-esm-custom-exports.mjs
blob: ad81abfdafd8613e7d3bbe57eef82df0091e7ff4 (plain)
1
2
3
4
5
6
7
8
9
10
// Flags: --conditions=custom-condition -u another
import { mustCall } from '../common/index.mjs';
import { strictEqual } from 'assert';
import { requireFixture, importFixture } from '../fixtures/pkgexports.mjs';
[requireFixture, importFixture].forEach((loadFixture) => {
  loadFixture('pkgexports/condition')
    .then(mustCall((actual) => {
      strictEqual(actual.default, 'from custom condition');
    }));
});