Skip to content

Commit a75a113

Browse files
Fix skipif
1 parent 0951a42 commit a75a113

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

packages/node/tests/PowerSyncDatabase.test.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -205,12 +205,9 @@ databaseTest('getCrudTransactions', async ({ database }) => {
205205
expect(remainingTransaction?.crud).toHaveLength(15);
206206
});
207207

208-
tempDirectoryTest(
208+
// This is not a SemVer check, but is basic enough to skip this test on older versions of Node.js
209+
tempDirectoryTest.skipIf(process.versions.node < '22.5.0')(
209210
'should not present database is locked errors on startup',
210-
{
211-
// This is not a SemVer check, but is basic enough to skip this test on older versions of Node.js
212-
skip: process.versions.node < '22.5.0'
213-
},
214211
async ({ tmpdir }) => {
215212
for (let i = 0; i < 10; i++) {
216213
const database = new PowerSyncDatabase({

0 commit comments

Comments
 (0)