dbdump script

This commit is contained in:
Felix Roos
2022-11-04 17:30:19 +01:00
parent 5534db95bc
commit e5f38dbbc6
6 changed files with 376 additions and 9 deletions
+1 -7
View File
@@ -1,14 +1,8 @@
import { queryCode } from '../runtime.mjs';
import { describe, it } from 'vitest';
import { createClient } from '@supabase/supabase-js';
const supabase = createClient(
'https://pidxdsxphlhzjnzmifth.supabase.co',
'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InBpZHhkc3hwaGxoempuem1pZnRoIiwicm9sZSI6ImFub24iLCJpYXQiOjE2NTYyMzA1NTYsImV4cCI6MTk3MTgwNjU1Nn0.bqlw7802fsWRnqU5BLYtmXk_k-D1VFmbkHMywWc15NM',
);
import data from './dbdump.json';
describe('renders shared tunes', async () => {
const { data } = await supabase.from('code');
data.forEach(({ id, code, hash }) => {
const url = `https://strudel.tidalcycles.org/?${hash}`;
it(`shared tune ${id} ${url}`, async ({ expect }) => {