Skip to content

Commit

Permalink
🧪 test: Allow CommonJS tests to run.
Browse files Browse the repository at this point in the history
  • Loading branch information
make-github-pseudonymous-again committed Mar 7, 2024
1 parent ed80f51 commit 10a9045
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
export {IndexError} from '@failure-abstraction/error';

export * as core from './core/index.js';

export {default as heappop} from './heappop.js';
export {default as heapify} from './heapify.js';
export {default as heappushpop} from './heappushpop.js';
Expand Down
3 changes: 3 additions & 0 deletions test/src/_fixtures.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import * as mod from '#module';

export const {IndexError} = mod.default ?? mod;
3 changes: 2 additions & 1 deletion test/src/heapq.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import test from 'ava';

import {IndexError} from '@failure-abstraction/error';
import {list} from '@iterable-iterator/list';
import {increasing} from '@total-order/primitive';

import {IndexError} from './_fixtures.js';

import * as heapq from '#module';

test('heapq', (t) => {
Expand Down

0 comments on commit 10a9045

Please sign in to comment.