Skip to content

Commit

Permalink
chore: follow up on #3301 (#3309)
Browse files Browse the repository at this point in the history
* chore: bring back some disabled tests

* chore: simplify scripts

* fix: remove legacy regex from gnosis

* chore: simplify scripts
  • Loading branch information
anxolin authored Nov 1, 2023
1 parent 866004c commit 21b59b6
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 10 deletions.
2 changes: 1 addition & 1 deletion apps/cowswap-frontend-e2e/src/e2e/swapMod.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ describe('Swap (mod)', () => {
cy.get('#toggle-recipient-mode-button').click()
})

it.only('Recipient is visible', () => {
it('Recipient is visible', () => {
cy.get('#recipient').should('exist')
})
})
Expand Down
6 changes: 1 addition & 5 deletions apps/cowswap-frontend/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"executor": "@nx/vite:build",
"outputs": ["{options.outputPath}"],
"defaultConfiguration": "production",
"dependsOn": ["i18n:compile"],
"dependsOn": ["i18n"],
"options": {
"outputPath": "build/cowswap"
},
Expand Down Expand Up @@ -75,10 +75,6 @@
},

"i18n": {
"executor": "nx:noop",
"dependsOn": ["i18n:compile"]
},
"i18n:compile": {
"executor": "nx:run-commands",
"dependsOn": ["i18n:extract"],
"options": {
Expand Down
2 changes: 1 addition & 1 deletion libs/common-utils/src/environments.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ describe('Detect environments using host and path', () => {
})
})

describe.only('Is production', () => {
describe('Is production', () => {
const isProduction = { ...DEFAULT_ENVIRONMENTS_CHECKS, isProd: true }

it('swap.cow.fi', () => {
Expand Down
2 changes: 1 addition & 1 deletion libs/common-utils/src/environments.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { registerOnWindow } from './misc'

const DEFAULT_ENVIRONMENTS_REGEX: Record<Envs, string> = {
LOCAL: '^(:?localhost:\\d{2,5}|(?:127|192)(?:\\.[0-9]{1,3}){3})',
PR: '^pr\\d+--cowswap\\.review|^(swap-dev-git-[\\w\\d-]+|swap-\\w{9}-)cowswap\\.vercel\\.app',
PR: '^(swap-dev-git-[\\w\\d-]+|swap-\\w{9}-)cowswap\\.vercel\\.app',
DEV: '^(dev.swap.cow.fi|swap-develop.vercel.app)',
STAGING: '^(staging.swap.cow.fi|swap-staging.vercel.app)',
PROD: '^(swap.cow.fi|swap-prod.vercel.app)$',
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@
"ipfs:publish": "npx ipfs-deploy build -p pinata -O",
"i18n": "nx run-many -t i18n",
"preview": "cross-env NODE_OPTIONS=--max-old-space-size=32768 nx run cowswap-frontend:preview",
"test": "yarn test:all",
"test:all": "nx run-many -t test",
"test": "nx run-many -t test",
"e2e": "nx run-many -t e2e",
"lint": "nx run-many -t lint",
"prebuild-app": "yarn i18n",
Expand Down

0 comments on commit 21b59b6

Please sign in to comment.