Skip to content

Commit 326c8dd

Browse files
committed
update dep, added peer dep, updated configs
1 parent b9059a1 commit 326c8dd

File tree

4 files changed

+20
-10
lines changed

4 files changed

+20
-10
lines changed

jest.config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,9 @@ module.exports = {
88
setupFilesAfterEnv: ["./test/helpers/jest.setup.js"],
99
transformIgnorePatterns: ["/node_modules/(?!lit-html).+\\.js"],
1010
roots: ['<rootDir>/src', '<rootDir>/test'],
11+
moduleNameMapper: {
12+
'^window$': '<rootDir>/test/mocks/window.js',
13+
'^SolidLogic$': 'solid-logic',
14+
'^\\$rdf$': 'rdflib'
15+
},
1116
}

package-lock.json

Lines changed: 8 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,16 @@
4040
},
4141
"homepage": "https://github.com/solid/source-pane",
4242
"peerDependencies": {
43-
"solid-logic": "3.1.1-536a3ae",
44-
"solid-ui": "2.6.1-05fb7cc"
43+
"rdflib": "^2.2.37",
44+
"solid-ui": "2.6.1-2343996"
4545
},
4646
"devDependencies": {
4747
"@babel/eslint-parser": "^7.28.0",
4848
"@testing-library/dom": "^10.4.1",
4949
"eslint": "^9.33.0",
5050
"jest": "^30.0.5",
5151
"jest-environment-jsdom": "^30.0.5",
52-
"jest-fetch-mock": "^3.0.3"
52+
"jest-fetch-mock": "^3.0.3",
53+
"solid-logic": "3.1.1-536a3ae"
5354
}
5455
}

test/helpers/jest.setup.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
const fetchMock = require('jest-fetch-mock')
33
const { TextEncoder, TextDecoder } = require('util')
44

5+
// Mock external dependencies that solid-logic expects
6+
jest.mock('$rdf', () => require('rdflib'), { virtual: true })
7+
58
global.TextEncoder = TextEncoder;
69
global.TextDecoder = TextDecoder
710

0 commit comments

Comments
 (0)