Skip to content

Commit 9eb7480

Browse files
committed
test: load @blocknote/core/style.css from source in browser tests
Aliases the CSS subpath to packages/core/src/style.css so editor styles track source like the JS does, instead of resolving to a potentially stale dist/style.css. This was hiding the suggestion-mode highlight in the add-bold screenshot, now regenerated.
1 parent 162edfc commit 9eb7480

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

-3 Bytes
Loading

tests/vite.config.browser.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,12 @@ export default defineConfig((conf) => ({
3737
: ({
3838
"@shared": path.resolve(__dirname, "../shared/"),
3939
// load live from sources with live reload working
40+
// CSS alias must precede the bare "@blocknote/core" one, else
41+
// /style.css resolves to the (stale) prebuilt dist/style.css.
42+
"@blocknote/core/style.css": path.resolve(
43+
__dirname,
44+
"../packages/core/src/style.css",
45+
),
4046
"@blocknote/core": path.resolve(__dirname, "../packages/core/src/"),
4147
"@blocknote/react": path.resolve(
4248
__dirname,

0 commit comments

Comments
 (0)