Skip to content

Commit 563b47d

Browse files
committed
fix: resolve @surrealdb/spectron from source in tests
Map @surrealdb/spectron to ./packages/spectron/src in the root tsconfig paths, matching the existing convention for surrealdb and @surrealdb/sqon. Without this mapping the package only resolved via its built dist/ bundle, so spectron tests failed with "Cannot find module '@surrealdb/spectron'" whenever the package had not been built.
1 parent f6c2185 commit 563b47d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@
2424

2525
"paths": {
2626
"surrealdb": ["./packages/sdk/src"],
27-
"@surrealdb/sqon": ["./packages/sqon/src"]
27+
"@surrealdb/sqon": ["./packages/sqon/src"],
28+
"@surrealdb/spectron": ["./packages/spectron/src"]
2829
}
2930
}
3031
}

0 commit comments

Comments
 (0)