From 874633051bae74d07f8e1a1c0aadc3882732f97f Mon Sep 17 00:00:00 2001 From: Felix Roos Date: Thu, 17 Nov 2022 10:56:46 +0100 Subject: [PATCH] fix: snapshot --- package.json | 2 +- repl/package.json | 1 - .../test/__snapshots__/examples.test.mjs.snap | 16 ++++++++-------- 3 files changed, 9 insertions(+), 10 deletions(-) diff --git a/package.json b/package.json index c299daf1..41225628 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ "test-coverage": "vitest --coverage", "bootstrap": "lerna bootstrap", "setup": "npm i && npm run bootstrap && cd repl && npm i && cd ../tutorial && npm i", - "snapshot": "cd repl && npm run snapshot", + "snapshot": "vitest run -u --silent", "repl": "cd repl && npm run dev", "osc": "cd packages/osc && npm run server", "build": "rm -rf out && cd repl && npm run build && cd ../tutorial && npm run build", diff --git a/repl/package.json b/repl/package.json index 88a5b1c0..97ac8dbd 100644 --- a/repl/package.json +++ b/repl/package.json @@ -11,7 +11,6 @@ "build": "vite build", "preview": "vite preview", "test": "vitest run --reporter verbose -v --no-isolate", - "snapshot": "vitest run -u --silent", "add-license": "cat etc/agpl-header.txt ../docs/static/js/*LICENSE.txt > /tmp/strudel-license.txt && cp /tmp/strudel-license.txt ../docs/static/js/*LICENSE.txt", "predeploy": "npm run build", "deploy": "gh-pages -d ../docs", diff --git a/tutorial/test/__snapshots__/examples.test.mjs.snap b/tutorial/test/__snapshots__/examples.test.mjs.snap index 305f7279..e97d20b7 100644 --- a/tutorial/test/__snapshots__/examples.test.mjs.snap +++ b/tutorial/test/__snapshots__/examples.test.mjs.snap @@ -767,10 +767,10 @@ exports[`runs examples > example "dry" example index 0 1`] = ` exports[`runs examples > example "each" example index 0 1`] = ` [ - "3/4 -> 1/1: {\\"note\\":\\"c3\\"}", - "1/2 -> 3/4: {\\"note\\":\\"d3\\"}", - "1/4 -> 1/2: {\\"note\\":\\"e3\\"}", - "0/1 -> 1/4: {\\"note\\":\\"g3\\"}", + "0/1 -> 1/4: {\\"note\\":\\"c3\\"}", + "1/4 -> 1/2: {\\"note\\":\\"d3\\"}", + "1/2 -> 3/4: {\\"note\\":\\"e3\\"}", + "3/4 -> 1/1: {\\"note\\":\\"g3\\"}", "1/1 -> 5/4: {\\"note\\":\\"c3\\"}", "5/4 -> 3/2: {\\"note\\":\\"d3\\"}", "3/2 -> 7/4: {\\"note\\":\\"e3\\"}", @@ -779,10 +779,10 @@ exports[`runs examples > example "each" example index 0 1`] = ` "9/4 -> 5/2: {\\"note\\":\\"d3\\"}", "5/2 -> 11/4: {\\"note\\":\\"e3\\"}", "11/4 -> 3/1: {\\"note\\":\\"g3\\"}", - "3/1 -> 13/4: {\\"note\\":\\"c3\\"}", - "13/4 -> 7/2: {\\"note\\":\\"d3\\"}", - "7/2 -> 15/4: {\\"note\\":\\"e3\\"}", - "15/4 -> 4/1: {\\"note\\":\\"g3\\"}", + "15/4 -> 4/1: {\\"note\\":\\"c3\\"}", + "7/2 -> 15/4: {\\"note\\":\\"d3\\"}", + "13/4 -> 7/2: {\\"note\\":\\"e3\\"}", + "3/1 -> 13/4: {\\"note\\":\\"g3\\"}", ] `;