Skip to content

Commit

Permalink
chore: update dependencies (remix-run#100)
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelDeBoey authored Jun 9, 2022
1 parent c4f0afc commit bd45001
Show file tree
Hide file tree
Showing 9 changed files with 33 additions and 34 deletions.
27 changes: 27 additions & 0 deletions cypress.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import { defineConfig } from "cypress";

export default defineConfig({
e2e: {
setupNodeEvents: (on, config) => {
const isDev = config.watchForFileChanges;
const port = process.env.PORT ?? (isDev ? "3000" : "8811");
const configOverrides: Partial<Cypress.PluginConfigOptions> = {
baseUrl: `http://localhost:${port}`,
video: !process.env.CI,
screenshotOnRunFailure: !process.env.CI,
};

// To use this:
// cy.task('log', whateverYouWantInTheTerminal)
on("task", {
log: (message) => {
console.log(message);

return null;
},
});

return { ...config, ...configOverrides };
},
},
});
1 change: 0 additions & 1 deletion cypress.json

This file was deleted.

2 changes: 1 addition & 1 deletion cypress/e2e/smoke.ts → cypress/e2e/smoke.cy.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import faker from "@faker-js/faker";
import { faker } from "@faker-js/faker";

describe("smoke tests", () => {
afterEach(() => {
Expand Down
25 changes: 0 additions & 25 deletions cypress/plugins/index.ts

This file was deleted.

2 changes: 1 addition & 1 deletion cypress/support/commands.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import faker from "@faker-js/faker";
import { faker } from "@faker-js/faker";

declare global {
namespace Cypress {
Expand Down
File renamed without changes.
4 changes: 1 addition & 3 deletions cypress/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@
"../node_modules/@testing-library/jest-dom"
],
"include": [
"./index.ts",
"e2e/**/*",
"plugins/**/*",
"support/**/*",
"../node_modules/cypress",
"../node_modules/@testing-library/cypress"
Expand All @@ -16,7 +14,7 @@
"noEmit": true,
"types": ["node", "cypress", "@testing-library/cypress"],
"esModuleInterop": true,
"jsx": "react",
"jsx": "react-jsx",
"moduleResolution": "node",
"target": "es2019",
"strict": true,
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,10 @@
"binode": "^1.0.5",
"c8": "^7.11.3",
"cross-env": "^7.0.3",
"cypress": "^9.7.0",
"cypress": "^10.0.3",
"eslint": "^8.17.0",
"eslint-config-prettier": "^8.5.0",
"happy-dom": "^3.2.2",
"happy-dom": "^5.2.0",
"msw": "^0.42.1",
"npm-run-all": "^4.1.5",
"postcss": "^8.4.14",
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"exclude": ["./cypress"],
"exclude": ["./cypress", "./cypress.config.ts"],
"include": ["remix.env.d.ts", "**/*.ts", "**/*.tsx"],
"compilerOptions": {
"lib": ["DOM", "DOM.Iterable", "ES2019"],
Expand Down

0 comments on commit bd45001

Please sign in to comment.