Skip to content

Commit

Permalink
build: update project dependencies and migrate to cypress 10
Browse files Browse the repository at this point in the history
  • Loading branch information
matthxc committed Sep 15, 2022
1 parent 3e199f3 commit 8f46b95
Show file tree
Hide file tree
Showing 8 changed files with 11,193 additions and 15,208 deletions.
2 changes: 1 addition & 1 deletion .size-limit.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{
"name": "JS Chunks",
"path": ".next/static/chunks",
"limit": "115.2 kB"
"limit": "118.6 kB"
},
{
"name": "CSS",
Expand Down
29 changes: 0 additions & 29 deletions __tests__/integration/e2e/plugins/index.js

This file was deleted.

18 changes: 18 additions & 0 deletions cypress.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import { defineConfig } from 'cypress';

export default defineConfig({
fixturesFolder: '__tests__/integration/e2e/fixtures',
screenshotsFolder: '__tests__/integration/e2e/screenshots',
videosFolder: '__tests__/integration/e2e/videos',
videoCompression: 0,
e2e: {
setupNodeEvents(on, config) {
require('@cypress/code-coverage/task')(on, config);
on('file:preprocessor', require('@cypress/code-coverage/use-babelrc'));
return config;
},
baseUrl: 'http://localhost:3000',
specPattern: '__tests__/integration/e2e/tests/**/*.cy.{js,jsx,ts,tsx}',
supportFile: '__tests__/integration/e2e/support/index.js',
},
});
10 changes: 0 additions & 10 deletions cypress.json

This file was deleted.

12 changes: 8 additions & 4 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
module.exports = {
moduleFileExtensions: ['js', 'jsx', 'ts', 'tsx'],
testEnvironment: 'jsdom',
globals: {
'ts-jest': {
tsconfig: 'tsconfig.jest.json',
},
transform: {
'^.+\\.jsx$': 'babel-jest',
'^.+\\.tsx?$': [
'ts-jest',
{
tsconfig: 'tsconfig.jest.json',
},
],
},
clearMocks: true,
collectCoverage: true,
Expand Down
Loading

0 comments on commit 8f46b95

Please sign in to comment.