Skip to content

Commit

Permalink
chore: run prettier (#1116)
Browse files Browse the repository at this point in the history
  • Loading branch information
grothem authored Sep 14, 2022
1 parent f87d3d7 commit 5d03769
Show file tree
Hide file tree
Showing 28 changed files with 98 additions and 103 deletions.
7 changes: 4 additions & 3 deletions cypress.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { defineConfig } from 'cypress'
import { defineConfig } from 'cypress';

export default defineConfig({
viewportWidth: 1200,
Expand All @@ -16,7 +16,8 @@ export default defineConfig({
// We've imported your old cypress plugins here.
// You may want to clean this up later by importing these.
setupNodeEvents(on, config) {
return require('./cypress/plugins/index.js')(on, config)
// eslint-disable-next-line @typescript-eslint/no-var-requires
return require('./cypress/plugins/index.js')(on, config);
},
},
})
});
2 changes: 1 addition & 1 deletion cypress/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ there is command for development/debuging/local executing tests:

- `yarn run test:open` - it's open visual window with all test and manual executing

*steps:*
_steps:_

1. install dependencies `yarn`
2. add .env.local file to the root folder with:
Expand Down
2 changes: 1 addition & 1 deletion cypress/configs/settings.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ const folder = `./cypress/e2e/2-settings/`;
export default defineConfig({
...defaultConfig,
e2e: {
specPattern: [folder + "**/*.*"],
specPattern: [folder + '**/*.*'],
},
});
7 changes: 2 additions & 5 deletions cypress/configs/v2-markets/amm-v2-full.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,7 @@ const folder = `./cypress/e2e/0-v2-markets/1-amm-v2-market/`;
export default defineConfig({
...defaultConfig,
e2e: {
specPattern: [folder + "**/*.*"],
excludeSpecPattern: [
"/**/eth.amm-v2.cy.ts",
"/**/usdt.amm-v2.cy.ts",
],
specPattern: [folder + '**/*.*'],
excludeSpecPattern: ['/**/eth.amm-v2.cy.ts', '/**/usdt.amm-v2.cy.ts'],
},
});
5 changes: 1 addition & 4 deletions cypress/configs/v2-markets/amm-v2-smoke.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ const folder = `./cypress/e2e/0-v2-markets/1-amm-v2-market/`;
export default defineConfig({
...defaultConfig,
e2e: {
specPattern: [
folder + "0-assets/eth.amm-v2.cy.ts",
folder + "0-assets/usdt.amm-v2.cy.ts",
],
specPattern: [folder + '0-assets/eth.amm-v2.cy.ts', folder + '0-assets/usdt.amm-v2.cy.ts'],
},
});
12 changes: 6 additions & 6 deletions cypress/configs/v2-markets/avalanche-v2-full.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ const folder = `./cypress/e2e/0-v2-markets/3-avalanche-v2-market/`;
export default defineConfig({
...defaultConfig,
e2e: {
specPattern: [folder + "**/*.*"],
specPattern: [folder + '**/*.*'],
excludeSpecPattern: [
"/**/avax.avalanche-v2.cy.ts",
"/**/usdt.avalanche-v2.cy.ts",
"/**/reward.avalanche-v2.cy.ts",
"/**/swap.avalanche-v2.cy.ts",
"/**/critical-conditions.avalanche-v2.cy.ts",
'/**/avax.avalanche-v2.cy.ts',
'/**/usdt.avalanche-v2.cy.ts',
'/**/reward.avalanche-v2.cy.ts',
'/**/swap.avalanche-v2.cy.ts',
'/**/critical-conditions.avalanche-v2.cy.ts',
],
},
});
8 changes: 4 additions & 4 deletions cypress/configs/v2-markets/ethereum-v2-additional.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ export default defineConfig({
...defaultConfig,
e2e: {
specPattern: [
folder + "/**/swap.aave-v2.cy.ts",
folder + "/**/stake.aave-v2.cy.ts",
folder + "/**/reward.aave-v2.cy.ts",
folder + "/**/critical-conditions.aave-v2.cy.ts",
folder + '/**/swap.aave-v2.cy.ts',
folder + '/**/stake.aave-v2.cy.ts',
folder + '/**/reward.aave-v2.cy.ts',
folder + '/**/critical-conditions.aave-v2.cy.ts',
],
},
});
14 changes: 7 additions & 7 deletions cypress/configs/v2-markets/ethereum-v2-full.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ const folder = `./cypress/e2e/0-v2-markets/0-main-v2-market/`;
export default defineConfig({
...defaultConfig,
e2e: {
specPattern: [folder + "**/*.*"],
specPattern: [folder + '**/*.*'],
excludeSpecPattern: [
"/**/eth.aave-v2.cy.ts",
"/**/dai.aave-v2.cy.ts",
"/**/swap.aave-v2.cy.ts",
"/**/stake.aave-v2.cy.ts",
"/**/reward.aave-v2.cy.ts",
"/**/critical-conditions.aave-v2.cy.ts",
'/**/eth.aave-v2.cy.ts',
'/**/dai.aave-v2.cy.ts',
'/**/swap.aave-v2.cy.ts',
'/**/stake.aave-v2.cy.ts',
'/**/reward.aave-v2.cy.ts',
'/**/critical-conditions.aave-v2.cy.ts',
],
},
});
6 changes: 3 additions & 3 deletions cypress/configs/v2-markets/ethereum-v2-smoke.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ export default defineConfig({
...defaultConfig,
e2e: {
specPattern: [
folder + "0-assets/eth.aave-v2.cy.ts",
folder + "0-assets/dai.aave-v2.cy.ts",
folder + "reward.aave-v2.cy.ts",
folder + '0-assets/eth.aave-v2.cy.ts',
folder + '0-assets/dai.aave-v2.cy.ts',
folder + 'reward.aave-v2.cy.ts',
],
},
});
4 changes: 2 additions & 2 deletions cypress/configs/v2-markets/polygon-v2-additional.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ export default defineConfig({
...defaultConfig,
e2e: {
specPattern: [
folder + "swap.polygon-v2.cy.ts",
folder + "critical-conditions.polygon-v2.cy.ts",
folder + 'swap.polygon-v2.cy.ts',
folder + 'critical-conditions.polygon-v2.cy.ts',
],
},
});
10 changes: 5 additions & 5 deletions cypress/configs/v2-markets/polygon-v2-full.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ const folder = `./cypress/e2e/0-v2-markets/2-polygon-v2-market/`;
export default defineConfig({
...defaultConfig,
e2e: {
specPattern: [folder + "**/*.*"],
specPattern: [folder + '**/*.*'],
excludeSpecPattern: [
"/**/matic.polygon-v2.cy.ts",
"/**/usdt.polygon-v2.cy.ts",
"/**/swap.polygon-v2.cy.ts",
"/**/critical-conditions.polygon-v2.cy.ts",
'/**/matic.polygon-v2.cy.ts',
'/**/usdt.polygon-v2.cy.ts',
'/**/swap.polygon-v2.cy.ts',
'/**/critical-conditions.polygon-v2.cy.ts',
],
},
});
4 changes: 2 additions & 2 deletions cypress/configs/v2-markets/polygon-v2-smoke.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ export default defineConfig({
...defaultConfig,
e2e: {
specPattern: [
folder + "0-assets/matic.polygon-v2.cy.ts",
folder + "0-assets/usdt.polygon-v2.cy.ts",
folder + '0-assets/matic.polygon-v2.cy.ts',
folder + '0-assets/usdt.polygon-v2.cy.ts',
],
},
});
4 changes: 2 additions & 2 deletions cypress/configs/v3-markets/arbitrum-v3-additional.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ export default defineConfig({
...defaultConfig,
e2e: {
specPattern: [
folder + "e-mode.arbitrum-v3.cy.ts",
folder + "critical-conditions.arbitrum-v3.cy.ts",
folder + 'e-mode.arbitrum-v3.cy.ts',
folder + 'critical-conditions.arbitrum-v3.cy.ts',
],
},
});
10 changes: 5 additions & 5 deletions cypress/configs/v3-markets/arbitrum-v3-full.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ const folder = `./cypress/e2e/1-v3-markets/1-arbitrum-v3-market/`;
export default defineConfig({
...defaultConfig,
e2e: {
specPattern: [folder + "**/*.*"],
specPattern: [folder + '**/*.*'],
excludeSpecPattern: [
"/**/eth.arbitrum-v3.cy.ts",
"/**/usdt.arbitrum-v3.cy.ts",
"/**/e-mode.arbitrum-v3.cy.ts",
"/**/critical-conditions.arbitrum-v3.cy.ts",
'/**/eth.arbitrum-v3.cy.ts',
'/**/usdt.arbitrum-v3.cy.ts',
'/**/e-mode.arbitrum-v3.cy.ts',
'/**/critical-conditions.arbitrum-v3.cy.ts',
],
},
});
4 changes: 2 additions & 2 deletions cypress/configs/v3-markets/arbitrum-v3-smoke.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ export default defineConfig({
...defaultConfig,
e2e: {
specPattern: [
folder + "0-assets/eth.arbitrum-v3.cy.ts",
folder + "0-assets/usdt.arbitrum-v3.cy.ts",
folder + '0-assets/eth.arbitrum-v3.cy.ts',
folder + '0-assets/usdt.arbitrum-v3.cy.ts',
],
},
});
8 changes: 4 additions & 4 deletions cypress/configs/v3-markets/avalanche-v3-additional.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ export default defineConfig({
...defaultConfig,
e2e: {
specPattern: [
folder + "swap.avalanche-v3.cy.ts",
folder + "e-mode.avalanche-v3.cy.ts",
folder + "isolated-mode.avalanche-v3.cy.ts",
folder + "critical-conditions.avalanche-v3.cy.ts",
folder + 'swap.avalanche-v3.cy.ts',
folder + 'e-mode.avalanche-v3.cy.ts',
folder + 'isolated-mode.avalanche-v3.cy.ts',
folder + 'critical-conditions.avalanche-v3.cy.ts',
],
},
});
14 changes: 7 additions & 7 deletions cypress/configs/v3-markets/avalanche-v3-full.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ const folder = `./cypress/e2e/1-v3-markets/2-avalanche-v3-market/`;
export default defineConfig({
...defaultConfig,
e2e: {
specPattern: [folder + "**/*.*"],
specPattern: [folder + '**/*.*'],
excludeSpecPattern: [
"/**/avax.avalanche-v3.cy.ts",
"/**/dai.avalanche-v3.cy.ts",
"/**/swap.avalanche-v2.cy.ts",
"/**/e-mode.avalanche-v3.cy.ts",
"/**/isolated-mode.avalanche-v3.cy.ts",
"/**/critical-conditions.avalanche-v2.cy.ts",
'/**/avax.avalanche-v3.cy.ts',
'/**/dai.avalanche-v3.cy.ts',
'/**/swap.avalanche-v2.cy.ts',
'/**/e-mode.avalanche-v3.cy.ts',
'/**/isolated-mode.avalanche-v3.cy.ts',
'/**/critical-conditions.avalanche-v2.cy.ts',
],
},
});
4 changes: 2 additions & 2 deletions cypress/configs/v3-markets/avalanche-v3-smoke.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ export default defineConfig({
...defaultConfig,
e2e: {
specPattern: [
folder + "0-assets/avax.avalanche-v3.cy.ts",
folder + "0-assets/dai.avalanche-v3.cy.ts",
folder + '0-assets/avax.avalanche-v3.cy.ts',
folder + '0-assets/dai.avalanche-v3.cy.ts',
],
},
});
8 changes: 4 additions & 4 deletions cypress/configs/v3-markets/fantom-v3-additional.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ export default defineConfig({
...defaultConfig,
e2e: {
specPattern: [
folder + "swap.fantom-v3.cy.ts",
folder + "e-mode.fantom-v3.cy.ts",
folder + "isolated-mode.fantom-v3.cy.ts",
folder + "critical-conditions.fantom-v3.cy.ts",
folder + 'swap.fantom-v3.cy.ts',
folder + 'e-mode.fantom-v3.cy.ts',
folder + 'isolated-mode.fantom-v3.cy.ts',
folder + 'critical-conditions.fantom-v3.cy.ts',
],
},
});
14 changes: 7 additions & 7 deletions cypress/configs/v3-markets/fantom-v3-full.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ const folder = `./cypress/e2e/1-v3-markets/5-fantom-v3-market/`;
export default defineConfig({
...defaultConfig,
e2e: {
specPattern: [folder + "**/*.*"],
specPattern: [folder + '**/*.*'],
excludeSpecPattern: [
"/**/ftm.fantom-v3.cy.ts",
"/**/usdt.fantom-v3.cy.ts",
"/**/swap.fantom-v3.cy.ts",
"/**/e-mode.fantom-v3.cy.ts",
"/**/isolated-mode.fantom-v3.cy.ts",
"/**/critical-conditions.fantom-v3.cy.ts",
'/**/ftm.fantom-v3.cy.ts',
'/**/usdt.fantom-v3.cy.ts',
'/**/swap.fantom-v3.cy.ts',
'/**/e-mode.fantom-v3.cy.ts',
'/**/isolated-mode.fantom-v3.cy.ts',
'/**/critical-conditions.fantom-v3.cy.ts',
],
},
});
4 changes: 2 additions & 2 deletions cypress/configs/v3-markets/fantom-v3-smoke.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ export default defineConfig({
...defaultConfig,
e2e: {
specPattern: [
folder + "0-assets/ftm.fantom-v3.cy.ts",
folder + "0-assets/usdt.fantom-v3.cy.ts",
folder + '0-assets/ftm.fantom-v3.cy.ts',
folder + '0-assets/usdt.fantom-v3.cy.ts',
],
},
});
4 changes: 2 additions & 2 deletions cypress/configs/v3-markets/optimism-v3-additional.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ export default defineConfig({
...defaultConfig,
e2e: {
specPattern: [
folder + "critical-conditions.optimism-v3.cy.ts",
folder + "e-mode.optimism-v3.cy.ts",
folder + 'critical-conditions.optimism-v3.cy.ts',
folder + 'e-mode.optimism-v3.cy.ts',
],
},
});
10 changes: 5 additions & 5 deletions cypress/configs/v3-markets/optimism-v3-full.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ const folder = `./cypress/e2e/1-v3-markets/4-optimism-v3-market/`;
export default defineConfig({
...defaultConfig,
e2e: {
specPattern: [folder + "**/*.*"],
specPattern: [folder + '**/*.*'],
excludeSpecPattern: [
"/**/eth.optimism-v3.cy.ts",
"/**/usdt.optimism-v3.cy.ts",
"/**/critical-conditions.optimism-v3.cy.ts",
"/**/e-mode.optimism-v3.cy.ts",
'/**/eth.optimism-v3.cy.ts',
'/**/usdt.optimism-v3.cy.ts',
'/**/critical-conditions.optimism-v3.cy.ts',
'/**/e-mode.optimism-v3.cy.ts',
],
},
});
4 changes: 2 additions & 2 deletions cypress/configs/v3-markets/optimism-v3-smoke.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ export default defineConfig({
...defaultConfig,
e2e: {
specPattern: [
folder + "0-assets/eth.optimism-v3.cy.ts",
folder + "0-assets/usdt.optimism-v3.cy.ts",
folder + '0-assets/eth.optimism-v3.cy.ts',
folder + '0-assets/usdt.optimism-v3.cy.ts',
],
},
});
10 changes: 5 additions & 5 deletions cypress/configs/v3-markets/polygon-v3-additional.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ export default defineConfig({
...defaultConfig,
e2e: {
specPattern: [
folder + "swap.polygon-v3.cy.ts",
folder + "e-mode.polygon-v3.cy.ts",
folder + "isolated-mode.polygon-v3.cy.ts",
folder + "isolated-and-emode.polygon-v3.cy.ts",
folder + "critical-conditions.polygon-v3.cy.ts",
folder + 'swap.polygon-v3.cy.ts',
folder + 'e-mode.polygon-v3.cy.ts',
folder + 'isolated-mode.polygon-v3.cy.ts',
folder + 'isolated-and-emode.polygon-v3.cy.ts',
folder + 'critical-conditions.polygon-v3.cy.ts',
],
},
});
16 changes: 8 additions & 8 deletions cypress/configs/v3-markets/polygon-v3-full.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ const folder = `./cypress/e2e/1-v3-markets/3-polygon-v3-market/`;
export default defineConfig({
...defaultConfig,
e2e: {
specPattern: [folder + "**/*.*"],
specPattern: [folder + '**/*.*'],
excludeSpecPattern: [
"/**/matic.polygon-v3.cy.ts",
"/**/eurs.polygon-v3.cy.ts",
"/**/swap.polygon-v3.cy.ts",
"/**/e-mode.polygon-v3.cy.ts",
"/**/isolated-mode.polygon-v3.cy.ts",
"/**/isolated-and-emode.polygon-v3.cy.ts",
"/**/critical-conditions.polygon-v3.cy.ts",
'/**/matic.polygon-v3.cy.ts',
'/**/eurs.polygon-v3.cy.ts',
'/**/swap.polygon-v3.cy.ts',
'/**/e-mode.polygon-v3.cy.ts',
'/**/isolated-mode.polygon-v3.cy.ts',
'/**/isolated-and-emode.polygon-v3.cy.ts',
'/**/critical-conditions.polygon-v3.cy.ts',
],
},
});
4 changes: 2 additions & 2 deletions cypress/configs/v3-markets/polygon-v3-smoke.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ export default defineConfig({
...defaultConfig,
e2e: {
specPattern: [
folder + "0-assets/matic.polygon-v3.cy.ts",
folder + "0-assets/eurs.polygon-v3.cy.ts",
folder + '0-assets/matic.polygon-v3.cy.ts',
folder + '0-assets/eurs.polygon-v3.cy.ts',
],
},
});
Loading

0 comments on commit 5d03769

Please sign in to comment.