1
0
mirror of https://github.com/typemill/typemill.git synced 2025-10-22 18:16:49 +02:00

test seeding

This commit is contained in:
Mysteriedev
2022-03-06 16:18:57 +01:00
parent be57ce57d9
commit d8217302c6
10 changed files with 498 additions and 299 deletions

View File

@@ -1,4 +1,4 @@
const fs = require("fs");
const fs = require("fs-extra");
/// <reference types="cypress" />
// ***********************************************************
@@ -33,6 +33,15 @@ module.exports = (on, config) => {
);
}
return null;
},
prepopulateSetup() {
const settings = "settings";
const settingsFixture =
"cypress/fixtures/01_setup/prepulate_settings_seed/settings";
// of course files need to exist in order to perform a delete
fs.copySync(settingsFixture, settings);
return null;
},
});