Skip to content

Commit

Permalink
chore: update deps (#195)
Browse files Browse the repository at this point in the history
* chore: update deps

* chore: downgrade graphql

* fix: cypress setup
  • Loading branch information
emmenko authored Sep 27, 2023
1 parent cd507f6 commit 948a201
Show file tree
Hide file tree
Showing 6 changed files with 4,361 additions and 3,849 deletions.
5 changes: 1 addition & 4 deletions cypress.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import path from 'path';
import { defineConfig } from 'cypress';
import { customApplicationConfig } from '@commercetools-frontend/cypress/task';

export default defineConfig({
retries: 1,
Expand All @@ -16,10 +17,6 @@ export default defineConfig({
dotenv.config({ path: envPath });
}

const { customApplicationConfig } = await import(
'@commercetools-frontend/cypress/task'
);

on('task', {
customApplicationConfig,
});
Expand Down
5 changes: 4 additions & 1 deletion cypress/e2e/main.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@ const testCases = [
testCases.forEach((testCase) => {
describe(`rendering graphiql for "${testCase.urlPath}"`, () => {
it('should render page and execute query', () => {
cy.loginByOidc({ entryPointUriPath });
cy.loginToMerchantCenter({
entryPointUriPath,
initialRoute: applicationBaseRoute,
});
cy.findByText(testCase.linkName).click();
cy.url().should('include', `${applicationBaseRoute}/${testCase.urlPath}`);
cy.findByText(testCase.queryName).should('exist');
Expand Down
2 changes: 1 addition & 1 deletion jest.test.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
process.env.ENABLE_NEW_JSX_TRANSFORM = 'true';

module.exports = {
preset: '@commercetools-frontend/jest-preset-mc-app',
preset: '@commercetools-frontend/jest-preset-mc-app/typescript',
};
107 changes: 53 additions & 54 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,86 +23,85 @@
"typecheck:cypress": "tsc --noEmit -p cypress"
},
"dependencies": {
"@apollo/client": "3.7.11",
"@babel/core": "^7.20.12",
"@babel/runtime-corejs3": "^7.20.13",
"@commercetools-frontend/actions-global": "22.0.0",
"@commercetools-frontend/application-components": "22.0.0",
"@commercetools-frontend/application-config": "22.0.0",
"@commercetools-frontend/application-shell": "22.0.0",
"@commercetools-frontend/assets": "22.0.0",
"@commercetools-frontend/constants": "22.0.0",
"@commercetools-frontend/cypress": "22.0.0",
"@commercetools-frontend/eslint-config-mc-app": "22.0.0",
"@commercetools-frontend/i18n": "22.0.0",
"@commercetools-frontend/jest-preset-mc-app": "22.0.0",
"@commercetools-frontend/mc-scripts": "22.0.0",
"@commercetools-frontend/permissions": "22.0.0",
"@commercetools-uikit/constraints": "16.0.0",
"@commercetools-uikit/flat-button": "16.0.0",
"@commercetools-uikit/icons": "16.0.0",
"@commercetools-uikit/notifications": "16.0.0",
"@commercetools-uikit/spacings": "16.0.0",
"@commercetools-uikit/text": "16.0.0",
"@apollo/client": "3.8.4",
"@babel/core": "^7.23.0",
"@babel/runtime-corejs3": "^7.23.1",
"@commercetools-frontend/actions-global": "22.8.1",
"@commercetools-frontend/application-components": "22.8.1",
"@commercetools-frontend/application-config": "22.8.1",
"@commercetools-frontend/application-shell": "22.8.1",
"@commercetools-frontend/assets": "22.8.1",
"@commercetools-frontend/constants": "22.8.1",
"@commercetools-frontend/cypress": "22.8.1",
"@commercetools-frontend/eslint-config-mc-app": "22.8.1",
"@commercetools-frontend/i18n": "22.8.1",
"@commercetools-frontend/jest-preset-mc-app": "22.8.1",
"@commercetools-frontend/mc-scripts": "22.8.1",
"@commercetools-frontend/permissions": "22.8.1",
"@commercetools-uikit/constraints": "16.7.5",
"@commercetools-uikit/flat-button": "16.7.5",
"@commercetools-uikit/icons": "16.7.5",
"@commercetools-uikit/notifications": "16.7.5",
"@commercetools-uikit/spacings": "16.7.5",
"@commercetools-uikit/text": "16.7.5",
"@commercetools/http-user-agent": "3.0.0",
"@commitlint/cli": "17.5.1",
"@commitlint/config-conventional": "17.4.4",
"@emotion/react": "11.10.6",
"@formatjs/cli": "6.1.0",
"@formatjs/ecma402-abstract": "^1.14.3",
"@formatjs/icu-messageformat-parser": "^2.3.1",
"@formatjs/intl": "^2.7.1",
"@formatjs/intl-displaynames": "^6.3.1",
"@formatjs/intl-listformat": "^7.2.1",
"@commitlint/cli": "17.7.1",
"@commitlint/config-conventional": "17.7.0",
"@emotion/react": "11.11.1",
"@formatjs/cli": "6.2.0",
"@formatjs/ecma402-abstract": "^1.17.2",
"@formatjs/icu-messageformat-parser": "^2.6.2",
"@formatjs/intl": "^2.9.3",
"@formatjs/intl-displaynames": "^6.5.2",
"@formatjs/intl-listformat": "^7.4.2",
"@graphiql/react": "0.17.1",
"@graphiql/toolkit": "0.8.3",
"@manypkg/cli": "0.20.0",
"@testing-library/cypress": "8.0.3",
"@manypkg/cli": "0.21.0",
"@testing-library/cypress": "10.0.1",
"@testing-library/react": "12.1.5",
"@tsconfig/create-react-app": "1.0.3",
"@types/codemirror": "5.60.7",
"@types/codemirror": "5.60.10",
"@types/history": "^4.7.11",
"@types/jest": "^29.5.1",
"@types/jest": "^29.5.5",
"@types/lodash": "^4.14.198",
"@types/prop-types": "^15.7.5",
"@types/react": "17.0.48",
"@types/react-dom": "17.0.17",
"@types/react-router": "5.1.18",
"@types/react": "^17.0.56",
"@types/react-dom": "^17.0.19",
"@types/react-router": "^5.1.20",
"@types/react-router-dom": "^5.3.3",
"cypress": "12.9.0",
"dotenv": "16.0.3",
"eslint": "8.37.0",
"cypress": "13.2.0",
"dotenv": "16.3.1",
"eslint": "8.50.0",
"eslint-formatter-pretty": "4.1.0",
"graphiql": "2.4.1",
"graphiql-explorer": "0.9.0",
"graphql": "16.6.0",
"graphql-config": "4.5.0",
"husky": "8.0.3",
"intl-messageformat": "^10.3.4",
"jest": "29.5.0",
"jest-runner-eslint": "2.0.0",
"intl-messageformat": "^10.5.3",
"jest": "29.7.0",
"jest-runner-eslint": "2.1.2",
"jest-silent-reporter": "0.5.0",
"jest-watch-typeahead": "2.2.2",
"lint-staged": "13.2.0",
"prettier": "2.8.7",
"lint-staged": "14.0.1",
"prettier": "3.0.3",
"prop-types": "15.8.1",
"react": "17.0.2",
"react-dom": "17.0.2",
"react-intl": "6.4.1",
"react-intl": "6.4.7",
"react-redux": "7.2.9",
"react-router-dom": "5.3.4",
"redux": "4.2.1",
"start-server-and-test": "1.15.4",
"start-server-and-test": "2.0.1",
"surge": "0.23.1",
"tsc-files": "1.1.3",
"typescript": "4.9.5"
"tsc-files": "1.1.4",
"typescript": "5.0.4"
},
"packageManager": "pnpm@8.1.1",
"packageManager": "pnpm@8.5.1",
"license": "MIT",
"pnpm": {
"overrides": {
"@types/react": "17.0.48",
"@types/react-dom": "17.0.17",
"@types/react-router": "5.1.18"
"@flopflip/types": "13.1.3",
"@types/eslint": "^8.2.2"
},
"patchedDependencies": {
"@graphiql/react@0.17.1": "patches/@graphiql__react@0.17.1.patch"
Expand Down
Loading

0 comments on commit 948a201

Please sign in to comment.