Skip to content

Commit 807e51d

Browse files
Update dependency typescript to v5.5.3 (#746)
1 parent 73f79f9 commit 807e51d

File tree

4 files changed

+13
-8
lines changed

4 files changed

+13
-8
lines changed

package-lock.json

+5-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
"smoldash": "0.11.0",
7171
"svelte": "3.59.1",
7272
"svelte-preprocess": "5.0.4",
73-
"typescript": "5.1.6",
73+
"typescript": "5.5.3",
7474
"vue": "3.3.4"
7575
},
7676
"dependencies": {

src/extend-expect.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ const runJestUtilsInNode = (message: string, context: jest.MatcherContext) => {
225225
const closeRegex = /\$END_JEST_UTILS\$/g;
226226
let jestUtilsCall;
227227
while ((jestUtilsCall = jestUtilsCalls.pop())) {
228-
const start = jestUtilsCall.index!;
228+
const start = jestUtilsCall.index;
229229
const methodName = jestUtilsCall[1];
230230
closeRegex.lastIndex = start;
231231
const closeIndex = closeRegex.exec(message)?.index;

tests/utils/runJS.test.tsx

+6-2
Original file line numberDiff line numberDiff line change
@@ -494,8 +494,12 @@ describe('Ecosystem interoperability', () => {
494494
plugins: [
495495
sveltePlugin({
496496
preprocess: sveltePreprocess({
497-
// Does not work with module set to nodenext, works with either commonjs or esnext
498-
typescript: { compilerOptions: { module: 'commonjs' } },
497+
typescript: {
498+
compilerOptions: {
499+
module: 'preserve',
500+
moduleResolution: 'bundler',
501+
},
502+
},
499503
}),
500504
}),
501505
],

0 commit comments

Comments
 (0)