Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Pull Request Checklist

Before submitting your pull request, please ensure you have completed the following tasks:

- [ ] Code follows the project's style guidelines
- [ ] No commented-out code or debugging statements (e.g., `console.log`)
- [ ] If a documentation update is necessary, have you updated the README and/or the main .env.example
- [ ] Tests have been added or updated to cover changes
- [ ] No sensitive information (e.g., secrets, passwords) is included in the code

Thank you for your contribution!
21 changes: 21 additions & 0 deletions .github/workflows/LintAndTestWorkflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Lint and Test Workflow

on:
pull_request:

jobs:
lint-and-test:
name: Lint and Test
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.9]

steps:
- uses: actions/checkout@v3
- name: Set up Node.js ${{ matrix.node-version}}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: npm test
- run: npm run lint
3 changes: 3 additions & 0 deletions babel.config.jest.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
presets: [["@babel/preset-env", { targets: { node: "current" } }]],
};
6 changes: 6 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ const compat = new FlatCompat({

const eslintConfig = [
...compat.extends("next/core-web-vitals", "next/typescript"),
...compat.config({
extends: ["next"],
rules: {
"@typescript-eslint/no-explicit-any": ["off"],
},
}),
];

export default eslintConfig;
9 changes: 7 additions & 2 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,21 @@ module.exports = {
testEnvironment: "node",

// Define the root directory for tests and modules
roots: ["@/*/tests"],
roots: ["./src/"],

// Use ts-jest to transform TypeScript files
transform: {
"^.+\\.tsx?$": "ts-jest",
"^.+\\.jsx?$": ["babel-jest", { configFile: "./babel.config.jest.js" }],
},

// Regular expression to find test files
testRegex: "((\\.|/)(test|spec))\\.tsx?$",
testRegex: "((\\.|/)(test|spec))\\.(jsx?|tsx?)$",

// File extensions to recognize in module resolution
moduleFileExtensions: ["ts", "tsx", "js", "jsx", "json", "node"],

moduleNameMapper: {
"^@/(.*)$": "<rootDir>/src/$1",
},
};
Loading
Loading