Skip to content

Commit

Permalink
handle paths
Browse files Browse the repository at this point in the history
  • Loading branch information
kentcdodds committed Mar 24, 2022
1 parent 477c7fe commit 38b0763
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cypress/support/create-user.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Use this to create a new user and login with that user
// Simply call this with:
// npx ts-node ./cypress/support/create-user.ts [email protected]
// npx ts-node --require tsconfig-paths/register ./cypress/support/create-user.ts [email protected]
// and it will log out the cookie value you can use to interact with the server
// as that new user.

Expand Down
2 changes: 1 addition & 1 deletion cypress/support/delete-user.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Use this to delete a user by their email
// Simply call this with:
// npx ts-node ./cypress/support/delete-user.ts [email protected]
// npx ts-node --require tsconfig-paths/register ./cypress/support/delete-user.ts [email protected]
// and that user will get deleted

import { installGlobals } from "@remix-run/node/globals";
Expand Down
1 change: 1 addition & 0 deletions mocks/index.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
require("tsconfig-paths/register");
require("ts-node").register({ transpileOnly: true });
require("./start");
2 changes: 2 additions & 0 deletions mocks/start.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import { setupServer } from "msw/node";

import "~/utils";

const server = setupServer();

server.listen({ onUnhandledRequest: "warn" });
Expand Down
1 change: 1 addition & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@
"start-server-and-test": "^1.14.0",
"tailwindcss": "^3.0.23",
"ts-node": "^10.7.0",
"tsconfig-paths": "^3.14.1",
"typescript": "^4.6.2",
"vite-tsconfig-paths": "^3.4.1",
"vitest": "^0.7.10"
Expand All @@ -77,6 +78,6 @@
"node": ">=14"
},
"prisma": {
"seed": "ts-node prisma/seed.ts"
"seed": "ts-node --require tsconfig-paths/register prisma/seed.ts"
}
}

0 comments on commit 38b0763

Please sign in to comment.