more readable tune test + longer snaps

This commit is contained in:
Felix Roos 2022-05-01 23:13:54 +02:00
parent c939a8a0c1
commit a119b83b65
5 changed files with 93 additions and 1165 deletions

View file

@ -2,10 +2,10 @@
// it is intended to be written to tunes.snapshot.mjs using `npm run snapshot`
import * as tunes from './tunes.mjs';
import { queryCode } from './runtime.mjs';
import { queryCode, testCycles } from './runtime.mjs';
Object.entries(tunes).forEach(([key, code]) => {
queryCode(code).then((haps) => {
console.log(`export const ${key} = ${JSON.stringify(haps, null, 1)}`);
queryCode(code, testCycles[key] || 1).then((haps) => {
console.log(`export const ${key} = ${JSON.stringify(haps)}`);
});
});