Skip to content

Commit 10a9045

Browse files
🧪 test: Allow CommonJS tests to run.
1 parent ed80f51 commit 10a9045

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

src/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1+
export {IndexError} from '@failure-abstraction/error';
2+
13
export * as core from './core/index.js';
4+
25
export {default as heappop} from './heappop.js';
36
export {default as heapify} from './heapify.js';
47
export {default as heappushpop} from './heappushpop.js';

test/src/_fixtures.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import * as mod from '#module';
2+
3+
export const {IndexError} = mod.default ?? mod;

test/src/heapq.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
import test from 'ava';
22

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

6+
import {IndexError} from './_fixtures.js';
7+
78
import * as heapq from '#module';
89

910
test('heapq', (t) => {

0 commit comments

Comments
 (0)