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

add structure

This commit is contained in:
Mysteriedev
2022-03-05 12:47:49 +01:00
parent 0b0e39aa66
commit a801801956
15 changed files with 1020 additions and 956 deletions

34
cypress/plugins/index.js Normal file
View File

@@ -0,0 +1,34 @@
const fs = require("fs");
/// <reference types="cypress" />
// ***********************************************************
// This example plugins/index.js can be used to load plugins
//
// You can change the location of this file or turn off loading
// the plugins file with the 'pluginsFile' configuration option.
//
// You can read more here:
// https://on.cypress.io/plugins-guide
// ***********************************************************
// This function is called when a project is opened or re-opened (e.g. due to
// the project's config changing)
/**
* @type {Cypress.PluginConfig}
*/
// eslint-disable-next-line no-unused-vars
module.exports = (on, config) => {
on("task", {
resetSetup() {
fs.rmSync("settings/users", { recursive: true, force: true });
fs.rmSync("settings/settings.yaml");
fs.copyFileSync(
"cypress/fixtures/01_setup/default-settings.yaml",
"settings/settings.yaml"
);
return null;
},
});
};