1
0
mirror of https://github.com/typemill/typemill.git synced 2025-10-23 10:36:03 +02:00

Revert "fix cy tests"

This reverts commit 3b633ad57b.
This commit is contained in:
Mysteriedev
2022-03-05 12:42:16 +01:00
parent 3b633ad57b
commit 0b0e39aa66
15 changed files with 956 additions and 1020 deletions

View File

@@ -1,34 +0,0 @@
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;
},
});
};