Skip to content

Commit

Permalink
import solid as external to fix testing with npm
Browse files Browse the repository at this point in the history
  • Loading branch information
atk committed Mar 11, 2024
1 parent 7500d78 commit 451b1fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -219,8 +219,8 @@ export default function solidPlugin(options: Partial<Options> = {}): Plugin {

test.server = test.server || {};
test.server.deps = test.server.deps || {};
if (!test.server.deps.inline?.find((item: string | RegExp) => /solid-js/.test(item.toString()))) {
test.server.deps.inline = [...(test.server.deps.inline || []), /solid-js/];
if (!test.server.deps.external?.find((item: string | RegExp) => /solid-js/.test(item.toString()))) {
test.server.deps.external = [...(test.server.deps.external || []), /solid-js/];
}

const jestDomImport = getJestDomExport(userSetupFiles);
Expand Down

0 comments on commit 451b1fe

Please sign in to comment.