Skip to content

Commit 1337335

Browse files
committed
Fix asyncImportHelper import paths for compiled location
The asyncImportHelper files are compiled to test/compiled/*/asyncImportHelper.js, so the relative paths need to account for the compiled directory depth: - Unit tests: test/compiled/unit/ needs ../../../dist/jspdf.es.js (3 levels up) - ESM tests: test/compiled/deployment/esm/ needs ../../../../dist/jspdf.es.js (4 levels up) These paths resolve correctly to /base/dist/jspdf.es.js when served by Karma.
1 parent 3a9b5ee commit 1337335

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/deployment/esm/asyncImportHelper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import {
1212
AcroFormTextField,
1313
AcroFormPasswordField,
1414
AcroFormAppearance
15-
} from "../../../dist/jspdf.es.js";
15+
} from "../../../../dist/jspdf.es.js";
1616

1717
window.importsReady({
1818
jsPDF,

test/unit/asyncImportHelper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import {
1212
AcroFormTextField,
1313
AcroFormPasswordField,
1414
AcroFormAppearance
15-
} from "../../dist/jspdf.es.js";
15+
} from "../../../dist/jspdf.es.js";
1616

1717
window.importsReady({
1818
jsPDF,

0 commit comments

Comments
 (0)