@rljson/io 0.0.51 → 0.0.52

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -36,21 +36,23 @@ import {
36
36
 
37
37
  import { Io, IoTestSetup, IoTools } from '@rljson/io';
38
38
 
39
- import { testSetup } from './io-conformance.setup.ts';
39
+ import { testSetup } from './io-conformance.setup';
40
40
  import { expectGolden, ExpectGoldenOptions } from './setup/goldens.ts';
41
41
 
42
42
  const ego: ExpectGoldenOptions = {
43
43
  npmUpdateGoldensEnabled: false,
44
44
  };
45
45
 
46
- export const runIoConformanceTests = (testSetup: IoTestSetup) => {
46
+ export const runIoConformanceTests = (
47
+ externalTestSetup?: () => IoTestSetup,
48
+ ) => {
47
49
  return describe('Io Conformance', async () => {
48
50
  let io: Io;
49
51
  let ioTools: IoTools;
50
52
  let setup: IoTestSetup;
51
53
 
52
54
  beforeAll(async () => {
53
- setup = testSetup;
55
+ setup = externalTestSetup ? externalTestSetup() : testSetup();
54
56
  await setup.beforeAll();
55
57
  });
56
58
 
@@ -1097,5 +1099,4 @@ export const runIoConformanceTests = (testSetup: IoTestSetup) => {
1097
1099
  });
1098
1100
  });
1099
1101
  };
1100
-
1101
- runIoConformanceTests(testSetup());
1102
+ runIoConformanceTests();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rljson/io",
3
- "version": "0.0.51",
3
+ "version": "0.0.52",
4
4
  "description": "Low level interface for reading and writing RLJSON data",
5
5
  "homepage": "https://github.com/rljson/io",
6
6
  "bugs": "https://github.com/rljson/io/issues",
@@ -23,10 +23,10 @@
23
23
  "@types/node": "^24.9.1",
24
24
  "@typescript-eslint/eslint-plugin": "^8.46.2",
25
25
  "@typescript-eslint/parser": "^8.46.2",
26
- "@vitest/coverage-v8": "^4.0.1",
26
+ "@vitest/coverage-v8": "^4.0.2",
27
27
  "cross-env": "^10.1.0",
28
28
  "eslint": "^9.38.0",
29
- "eslint-plugin-jsdoc": "^61.1.5",
29
+ "eslint-plugin-jsdoc": "^61.1.7",
30
30
  "eslint-plugin-tsdoc": "^0.4.0",
31
31
  "globals": "^16.4.0",
32
32
  "jsdoc": "^4.0.5",
@@ -37,14 +37,14 @@
37
37
  "vite-node": "^3.2.4",
38
38
  "vite-plugin-dts": "^4.5.4",
39
39
  "vite-tsconfig-paths": "^5.1.4",
40
- "vitest": "^4.0.1",
40
+ "vitest": "^4.0.2",
41
41
  "vitest-dom": "^0.1.1"
42
42
  },
43
43
  "dependencies": {
44
44
  "@rljson/hash": "^0.0.17",
45
45
  "@rljson/is-ready": "^0.0.17",
46
46
  "@rljson/json": "^0.0.22",
47
- "@rljson/rljson": "^0.0.65",
47
+ "@rljson/rljson": "^0.0.66",
48
48
  "@rljson/validate": "^0.0.11"
49
49
  },
50
50
  "scripts": {