Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
silesky committed Nov 14, 2024
1 parent 447d78c commit 8cd9244
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { SignalsPlugin } from '../signals-plugin'

// this specific test was throwing a bunch of warnings, so I had to mock sessionStorage.
// no idea why, as sessionStorage is a global object is available in the browser in the test environment, and works in other tests.
// this specific test was throwing a bunch of warnings:
// 'Cannot read properties of null (reading '_origin') at Window.get sessionStorage [as sessionStorage]'
// no idea why, as sessionStorage works as usual in other tests.
const sessionStorageMock = (() => {
let store: Record<string, any> = {}
return {
Expand Down

0 comments on commit 8cd9244

Please sign in to comment.