mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-19 04:56:00 +00:00
16 lines
427 B
JavaScript
16 lines
427 B
JavaScript
const { defineConfig } = require('cypress');
|
|
const { clearDataWithBackup } = require('./e2eTestTools');
|
|
|
|
module.exports = defineConfig({
|
|
e2e: {
|
|
setupNodeEvents(on, config) {
|
|
// implement node event listeners here
|
|
|
|
on('before:spec', async details => {
|
|
clearDataWithBackup();
|
|
// await axios.default.post('http://localhost:3000/connections/reload-connection-list', {});
|
|
});
|
|
},
|
|
},
|
|
});
|