From 67cb45be53897cd8a4857412459c70899e96ec6d Mon Sep 17 00:00:00 2001 From: Micha Reiser Date: Fri, 30 Dec 2022 12:45:40 +0100 Subject: [PATCH] update snapshots --- CONTRIBUTING.md | 2 +- npm/js-api/tests/__snapshots__/formatContent.test.ts.snap | 4 ++-- npm/js-api/tests/__snapshots__/lintContent.test.ts.snap | 8 ++++---- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index fc185be86c04..35c0ac49cc6b 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -88,7 +88,7 @@ The npm module npm/rome contains Rome's Node JS API that supports different back For testing and developing, you need to build these packages, following the steps: 1. install [wasm-pack](https://rustwasm.github.io/wasm-pack/installer/) globally; 2. run the `build` command inside the package `backend-jsonrpc`; -3. run the `build:wasm-node-dev` command inside the package `js-api` (folder `npm/js-api`); +3. run the `build` and `build:wasm-node-dev` commands inside the package `js-api` (folder `npm/js-api`); 4. run `pnpm i` inside the package `js-api` (folder `npm/js-api`), this will link the WebAssembly bindings and the JSON-RPC bindings; diff --git a/npm/js-api/tests/__snapshots__/formatContent.test.ts.snap b/npm/js-api/tests/__snapshots__/formatContent.test.ts.snap index 910c45047d80..dd73c1b602ce 100644 --- a/npm/js-api/tests/__snapshots__/formatContent.test.ts.snap +++ b/npm/js-api/tests/__snapshots__/formatContent.test.ts.snap @@ -17,7 +17,7 @@ exports[`Rome WebAssembly formatContent > should not format and have diagnostics }, }, }, - "source_code": null, + "source_code": undefined, "span": [ 11, 12, @@ -30,7 +30,7 @@ exports[`Rome WebAssembly formatContent > should not format and have diagnostics }, ], "severity": "Error", - "source": null, + "source": undefined, "tags": [], "verbose_advices": { "advices": [], diff --git a/npm/js-api/tests/__snapshots__/lintContent.test.ts.snap b/npm/js-api/tests/__snapshots__/lintContent.test.ts.snap index 77335ecb9f3b..0d4bc3eee5e1 100644 --- a/npm/js-api/tests/__snapshots__/lintContent.test.ts.snap +++ b/npm/js-api/tests/__snapshots__/lintContent.test.ts.snap @@ -30,8 +30,8 @@ exports[`Rome WebAssembly lintContent > should lint content > lint diagnostics 1 }, { "Frame": { - "path": null, - "source_code": null, + "path": undefined, + "source_code": undefined, "span": [ 6, 8, @@ -124,7 +124,7 @@ exports[`Rome WebAssembly lintContent > should lint content > lint diagnostics 1 "Path": "example.js", }, }, - "source_code": null, + "source_code": undefined, "span": [ 6, 8, @@ -153,7 +153,7 @@ exports[`Rome WebAssembly lintContent > should lint content > lint diagnostics 1 }, ], "severity": "Error", - "source": null, + "source": undefined, "tags": [ "Fixable", ],