-
-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(wip): server-side api mocks with express
- Loading branch information
Showing
19 changed files
with
211 additions
and
38,287 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ | |
/lib/ | ||
/test-results/ | ||
/playwright-report/ | ||
/tests-out/ |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import { spawn } from "child_process" | ||
|
||
const globalTeardown = async () => { | ||
// Currently you can kill ports running on TCP or UDP protocols | ||
const process = spawn("kill-port", ["3200"], { | ||
cwd: __dirname, | ||
shell: true, | ||
}) | ||
|
||
process.stdout?.on("data", (data) => { | ||
console.log(`stdout: ${data}`) | ||
}) | ||
|
||
process.stderr?.on("data", (data) => { | ||
console.log(`stderr: ${data}`) | ||
}) | ||
|
||
process.on("error", (err) => { | ||
console.error(`kill-port encountered an error ${err}`) | ||
}) | ||
|
||
process.on("close", (code) => { | ||
console.log(`child process exited with code ${code}`) | ||
}) | ||
} | ||
|
||
export default globalTeardown |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,32 @@ | ||
{ | ||
// Most ts-node options can be specified here using their programmatic names. | ||
"ts-node": { | ||
// It is faster to skip typechecking. | ||
// Remove if you want ts-node to do typechecking. | ||
"transpileOnly": false, | ||
|
||
"files": true, | ||
|
||
"compilerOptions": { | ||
// compilerOptions specified here will override those declared below, | ||
// but *only* in ts-node. Useful if you want ts-node and tsc to use | ||
// different options with a single tsconfig.json. | ||
"moduleResolution": "Node" | ||
} | ||
}, | ||
"compilerOptions": { | ||
"declaration": true, | ||
"resolveJsonModule": true, | ||
"target": "es5", | ||
"module": "commonjs", | ||
"lib": [ | ||
"es2019", | ||
"dom" | ||
], | ||
"moduleResolution": "Node", | ||
"target": "esnext", | ||
"module": "nodenext", | ||
"lib": ["esnext"], | ||
"outDir": "./lib", | ||
"strict": true, | ||
"typeRoots": [ | ||
"./types" | ||
], | ||
"typeRoots": ["./types"], | ||
"esModuleInterop": true, | ||
"skipLibCheck": true | ||
}, | ||
"include": [ | ||
"src/**/*.ts" | ||
], | ||
"exclude": [ | ||
"node_modules", | ||
"e2e" | ||
] | ||
"include": ["src/**/*.ts"], | ||
"exclude": ["node_modules", "e2e"] | ||
} |
Oops, something went wrong.