Skip to content

Commit

Permalink
Update Playwright setup to copy example SQLite DB to data folder
Browse files Browse the repository at this point in the history
  • Loading branch information
danlivings-dxw committed Sep 27, 2024
1 parent 939d48c commit 794ad26
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 55 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -139,3 +139,7 @@ towtruck.private-key.pem
/playwright-report/
/blob-report/
/playwright/.cache/

# SQLite
*.db-wal
*.db-shm
3 changes: 1 addition & 2 deletions e2es/seedTestData.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ export const createDestinationDirectory = async () => {
export const seedTestData = async () => {
console.info("Seeding test data...");
await Promise.all([
copyFile("./e2es/testData/repos.json", "./data/repos.json"),
copyFile("./e2es/testData/lifetimes.json", "./data/lifetimes.json"),
copyFile("./e2es/testData/towtruck.db", "./data/towtruck.db"),
]);
};

Expand Down
3 changes: 0 additions & 3 deletions e2es/testData/lifetimes.json

This file was deleted.

50 changes: 0 additions & 50 deletions e2es/testData/repos.json

This file was deleted.

Binary file added e2es/testData/towtruck.db
Binary file not shown.

0 comments on commit 794ad26

Please sign in to comment.