diff --git a/.gitignore b/.gitignore index 68bd285..fac6c7e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ vendor/ node_modules/ -data/*.json +data/ .direnv/ \ No newline at end of file diff --git a/cypress/e2e/admin.cy.js b/cypress/e2e/admin.cy.js index 5dca670..c06aece 100644 --- a/cypress/e2e/admin.cy.js +++ b/cypress/e2e/admin.cy.js @@ -1,11 +1,7 @@ describe('The admin page', () => { beforeEach(() => { - cy.exec('npm run db:seed') cy.visit('/admin') }) - afterEach(() => { - cy.exec('npm run db:wipe') - }) it('navigates to texts page', () => { cy.get('#texts').click() diff --git a/data/seedDb.php b/data/seedDb.php deleted file mode 100644 index d8d3698..0000000 --- a/data/seedDb.php +++ /dev/null @@ -1,17 +0,0 @@ - 0, - 'name' => 'test text' - ], -]; - -$fileDataMap = [ - 'texts.json' => $texts, -]; - -foreach ($fileDataMap as $file => $data) { - $path = __DIR__."/$file"; - file_put_contents($path, json_encode($data, JSON_PRETTY_PRINT)); -} diff --git a/data/wipeDb.php b/data/wipeDb.php deleted file mode 100644 index b180c35..0000000 --- a/data/wipeDb.php +++ /dev/null @@ -1,11 +0,0 @@ -