mirror of
https://github.com/eliasstepanik/strudel-docker.git
synced 2026-01-10 21:28:31 +00:00
18 lines
509 B
JavaScript
18 lines
509 B
JavaScript
import { queryCode } from '../runtime.mjs';
|
|
import { describe, it } from 'vitest';
|
|
import data from './dbdump.json';
|
|
|
|
describe('renders shared tunes', async () => {
|
|
data.forEach(({ id, code, hash }) => {
|
|
const url = `https://strudel.cc/?${hash}`;
|
|
it(`shared tune ${id} ${url}`, async ({ expect }) => {
|
|
if (code.includes('import(')) {
|
|
console.log('skip', url);
|
|
return;
|
|
}
|
|
const haps = await queryCode(code, 1);
|
|
expect(haps).toMatchSnapshot();
|
|
});
|
|
});
|
|
});
|