generated from t3-oss/create-t3-turbo
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add unittest step * use nvmrc for `node-version` * init playwright * fix playwright action issue * update artifact path * headless only * remove playwright * init mock server * explain how to run playwright tests
- Loading branch information
Showing
14 changed files
with
555 additions
and
31 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
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,4 @@ | ||
import baseConfig, { restrictEnvAccess } from "@acme/eslint-config/base" | ||
|
||
/** @type {import('typescript-eslint').Config} */ | ||
export default [...baseConfig] |
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,30 @@ | ||
{ | ||
"name": "mock-server", | ||
"version": "2.0.0", | ||
"private": true, | ||
"type": "module", | ||
"scripts": { | ||
"clean": "git clean -xdf .cache .turbo dist node_modules .next", | ||
"clean:cache": "git clean -xdf .cache", | ||
"dev": "tsx --watch src/server.ts", | ||
"format": "prettier --check . --ignore-path ../../.gitignore", | ||
"lint": "eslint .", | ||
"typecheck": "tsc --noEmit" | ||
}, | ||
"prettier": "@acme/prettier-config", | ||
"dependencies": { | ||
"@acme/logging": "workspace:*", | ||
"oauth2-mock-server": "7.2.0" | ||
}, | ||
"devDependencies": { | ||
"@acme/eslint-config": "workspace:*", | ||
"@acme/prettier-config": "workspace:*", | ||
"@acme/tailwind-config": "workspace:*", | ||
"@acme/tsconfig": "workspace:*", | ||
"@types/node": "22.10.2", | ||
"eslint": "9.17.0", | ||
"prettier": "3.4.2", | ||
"tsx": "4.19.2", | ||
"typescript": "5.7.2" | ||
} | ||
} |
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,10 @@ | ||
import { OAuth2Server } from "oauth2-mock-server" | ||
|
||
import { createLogger } from "@acme/logging" | ||
|
||
const logger = createLogger("console") | ||
const server = new OAuth2Server() | ||
await server.issuer.keys.generate("RS256") | ||
|
||
await server.start(8080, "localhost") | ||
logger.info("Issuer URL:", server.issuer.url) // -> http://localhost:8080 |
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,16 @@ | ||
{ | ||
"extends": "@acme/tsconfig/base.json", | ||
"compilerOptions": { | ||
"lib": ["es2022", "dom", "dom.iterable"], | ||
"jsx": "preserve", | ||
"typeRoots": ["types"], | ||
"baseUrl": ".", | ||
"paths": { | ||
"~/*": ["./src/*"] | ||
}, | ||
|
||
"module": "esnext" | ||
}, | ||
"include": [".", "dist/types/**/*.ts", "types"], | ||
"exclude": ["node_modules"] | ||
} |
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 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
Oops, something went wrong.