Skip to content

Commit f322047

Browse files
authored
Merge pull request #17 from GTBitsOfGood/nathan/user-invite-mutation
user invite mutation
2 parents fadb6f8 + 298d4aa commit f322047

File tree

9 files changed

+457
-21
lines changed

9 files changed

+457
-21
lines changed

.github/workflows/main.yml

+13-14
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,25 @@
11
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
22
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
33

4-
name: Lint, Test, and Build
4+
name: Lint and Test
55

66
on:
77
push:
8-
branches: [ "main" ]
8+
branches: ["main"]
99
pull_request:
10-
branches: [ "main" ]
10+
branches: ["main"]
1111

1212
jobs:
13-
lint-test-build:
13+
lint-test:
1414
runs-on: ubuntu-latest
1515

1616
steps:
17-
- uses: actions/checkout@v4
18-
- name: Use Node 22
19-
uses: actions/setup-node@v4
20-
with:
21-
node-version: 22.x
22-
cache: 'npm'
23-
- run: npm install
24-
- run: npm run lint
25-
- run: npm test
26-
- run: npm run build
17+
- uses: actions/checkout@v4
18+
- name: Use Node 22
19+
uses: actions/setup-node@v4
20+
with:
21+
node-version: 22.x
22+
cache: "npm"
23+
- run: npm install
24+
- run: npm run lint
25+
- run: npm test

babel.config.jest.js

+8-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,8 @@
1-
module.exports = {presets: ["next/babel", "@babel/preset-typescript", "@babel/preset-env"]}
1+
module.exports = {
2+
presets: [
3+
"next/babel",
4+
"@babel/preset-typescript",
5+
"@babel/preset-env",
6+
"@babel/preset-react",
7+
],
8+
};

jest.config.js

+11-6
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,15 @@ module.exports = {
77
},
88
setupFilesAfterEnv: ["./src/test/dbMock.ts", "./src/test/authMock.ts"],
99
transform: {
10-
"^.+\\.(ts|tsx)?$": "ts-jest",
11-
"^.+\\.(js|jsx)$": ["babel-jest", { "configFile": "./babel.config.jest.js" }],
10+
"^.+\\.(ts|tsx)?$": [
11+
"ts-jest",
12+
{
13+
tsconfig: {
14+
jsx: "react-jsx",
15+
},
16+
},
17+
],
18+
"^.+\\.(js|jsx)$": ["babel-jest", { configFile: "./babel.config.jest.js" }],
1219
},
13-
transformIgnorePatterns: [
14-
"node_modules/(?!@auth)/"
15-
]
16-
};
20+
transformIgnorePatterns: ["node_modules/(?!@auth)/"],
21+
};

package-lock.json

+99
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+2
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,14 @@
2525
"react-dom": "^19.0.0",
2626
"react-hot-toast": "^2.4.1",
2727
"react-icons": "^5.4.0",
28+
"uuid": "^11.0.5",
2829
"zod": "^3.24.1",
2930
"zod-form-data": "^2.0.5"
3031
},
3132
"devDependencies": {
3233
"@babel/core": "^7.26.0",
3334
"@babel/preset-env": "^7.26.0",
35+
"@babel/preset-react": "^7.26.3",
3436
"@babel/preset-typescript": "^7.26.0",
3537
"@babel/runtime": "^7.26.0",
3638
"@jest/globals": "^29.7.0",

0 commit comments

Comments
 (0)