mirror of
https://github.com/eliasstepanik/strudel.git
synced 2026-01-10 05:08:33 +00:00
+ update build and setup tasks + workflow + move repl test folder to root + move docs and repl to website/src
15 lines
426 B
JavaScript
15 lines
426 B
JavaScript
import { queryCode, testCycles } from './runtime.mjs';
|
|
import * as tunes from '../website/src/repl/tunes.mjs';
|
|
import { describe, it } from 'vitest';
|
|
|
|
const tuneKeys = Object.keys(tunes);
|
|
|
|
describe('renders tunes', () => {
|
|
tuneKeys.forEach((key) => {
|
|
it(`tune: ${key}`, async ({ expect }) => {
|
|
const haps = await queryCode(tunes[key], testCycles[key] || 1);
|
|
expect(haps).toMatchSnapshot();
|
|
});
|
|
});
|
|
});
|