tunes.test.mjs
mjs
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();
    });
  });
});
556e643

soundAlias example fix

@akodera@proton.me
0 stars

This is an instance of the Strudel app running on The Skyscape

Sign in to comment Sign In