From 759cefba27f9eb538c64f5894ec217221bd800ef Mon Sep 17 00:00:00 2001 From: Luc Patiny Date: Mon, 4 Mar 2024 12:00:23 +0100 Subject: [PATCH] test: fix snapshot (vitest versus jest) --- package.json | 4 ++-- src/__tests__/__snapshots__/index.test.ts.snap | 1 + .../__tests__/__snapshots__/stringify.test.ts.snap | 10 +++++----- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index 6c7c8126..9f4d44d8 100644 --- a/package.json +++ b/package.json @@ -90,7 +90,7 @@ "devDependencies": { "@types/jest": "^29.5.12", "cheminfo-build": "^1.2.0", - "eslint": "^8.56.0", + "eslint": "^8.57.0", "eslint-config-cheminfo-typescript": "^12.2.0", "esm": "^3.2.25", "jest": "^29.7.0", @@ -101,7 +101,7 @@ "rimraf": "^5.0.5", "spectrum-generator": "^8.0.9", "ts-jest": "^29.1.2", - "typedoc": "^0.25.8", + "typedoc": "^0.25.10", "typescript": "^5.3.3" }, "dependencies": { diff --git a/src/__tests__/__snapshots__/index.test.ts.snap b/src/__tests__/__snapshots__/index.test.ts.snap index 464df5fc..58557283 100644 --- a/src/__tests__/__snapshots__/index.test.ts.snap +++ b/src/__tests__/__snapshots__/index.test.ts.snap @@ -159,5 +159,6 @@ exports[`test existence of exported functions 1`] = ` "getRescaler", "isPowerOfTwo", "nextPowerOfTwo", + "stringify", ] `; diff --git a/src/utils/__tests__/__snapshots__/stringify.test.ts.snap b/src/utils/__tests__/__snapshots__/stringify.test.ts.snap index ffa93e3f..17d1ddb2 100644 --- a/src/utils/__tests__/__snapshots__/stringify.test.ts.snap +++ b/src/utils/__tests__/__snapshots__/stringify.test.ts.snap @@ -1,22 +1,22 @@ -// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html +// Jest Snapshot v1, https://goo.gl/fbAQLP exports[`stringify 1`] = ` "{ - \\"a\\": [ + "a": [ 1, 2, 3 ], - \\"b\\": [ + "b": [ 4, 5, 6 ], - \\"c\\": [ + "c": [ 1, 2, 3 ], - \\"d\\": \\"Hello\\" + "d": "Hello" }" `;