From 2b7f5ba7a12d616bfb0a4db8c575e94950ff4053 Mon Sep 17 00:00:00 2001 From: make-github-pseudonymous-again <5165674+make-github-pseudonymous-again@users.noreply.github.com> Date: Sun, 4 Feb 2024 16:15:52 +0100 Subject: [PATCH] :test_tube: test: Run tests on /dist. --- package.json | 2 +- test/src/api.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index acffd844..dfd24cf0 100644 --- a/package.json +++ b/package.json @@ -100,7 +100,7 @@ "test/src/**/*" ], "nodeArguments": [ - "--experimental-loader=@node-loader/core" + "--import=data:text/javascript,import {register} from 'node:module'; import {pathToFileURL} from 'node:url'; register('@node-loader/core', pathToFileURL('./'))" ], "require": [ "regenerator-runtime/runtime" diff --git a/test/src/api.js b/test/src/api.js index 116ac23c..adc138e8 100644 --- a/test/src/api.js +++ b/test/src/api.js @@ -1,6 +1,6 @@ import test from 'ava'; -import {isPalindrome} from '../../src/index.js'; +import {isPalindrome} from '#module'; const macro = (t, s, expected) => { t.is(expected, isPalindrome(s));