Skip to content

Commit

Permalink
fix: update package json and remove empty exports (#2625)
Browse files Browse the repository at this point in the history
* Removes exports statements in e2e tests
* Updates package.json to optionally use heroku url for e2e tests when
running locally
  • Loading branch information
FredrikOseberg committed Dec 7, 2022
1 parent d69ca0a commit 928b351
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 6 deletions.
2 changes: 0 additions & 2 deletions frontend/cypress/integration/feature/feature.spec.ts
@@ -1,7 +1,5 @@
/// <reference types="cypress" />

export {};

const ENTERPRISE = Boolean(Cypress.env('ENTERPRISE'));
const randomId = String(Math.random()).split('.')[1];
const featureToggleName = `unleash-e2e-${randomId}`;
Expand Down
1 change: 0 additions & 1 deletion frontend/cypress/integration/groups/groups.spec.ts
@@ -1,6 +1,5 @@
/// <reference types="cypress" />

export {};
const baseUrl = Cypress.config().baseUrl;
const randomId = String(Math.random()).split('.')[1];
const groupName = `unleash-e2e-${randomId}`;
Expand Down
1 change: 0 additions & 1 deletion frontend/cypress/integration/projects/access.spec.ts
Expand Up @@ -10,7 +10,6 @@ import {
PA_USERS_GROUPS_TITLE_ID,
} from '../../../src/utils/testIds';

export {};
const baseUrl = Cypress.config().baseUrl;
const randomId = String(Math.random()).split('.')[1];
const groupAndProjectName = `group-e2e-${randomId}`;
Expand Down
1 change: 0 additions & 1 deletion frontend/cypress/integration/segments/segments.spec.ts
@@ -1,6 +1,5 @@
/// <reference types="cypress" />

export {};
const randomId = String(Math.random()).split('.')[1];
const segmentName = `unleash-e2e-${randomId}`;

Expand Down
2 changes: 1 addition & 1 deletion frontend/package.json
Expand Up @@ -22,7 +22,7 @@
"fmt:check": "prettier src --check",
"ts:check": "tsc",
"e2e": "yarn run cypress open --config baseUrl='http://localhost:3000' --env AUTH_USER=admin,AUTH_PASSWORD=unleash4all",
"e2e:heroku": "yarn run cypress open --config baseUrl='http://localhost:3000' --env AUTH_USER=example@example.com",
"e2e:heroku": "yarn run cypress open --config baseUrl='https://unleash.herokuapp.com' --env AUTH_USER=admin,AUTH_PASSWORD=unleash4all",
"prepare": "yarn run build"
},
"devDependencies": {
Expand Down

0 comments on commit 928b351

Please sign in to comment.