Skip to content

Commit 743f3ad

Browse files
Merge pull request #10 from HichemTab-tech/add-tests
Add tests
2 parents 64a0b57 + b288c56 commit 743f3ad

File tree

8 files changed

+826
-6
lines changed

8 files changed

+826
-6
lines changed

.github/workflows/auto-bumper.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ jobs:
6464
issue_number: context.issue.number,
6565
owner: context.repo.owner,
6666
repo: context.repo.repo,
67-
body: `Okay boss, ⏳ Bumping version to ${pkg.version}...`
67+
body: `Okay BOSS, ⏳ Bumping version to ${pkg.version}...`
6868
})
6969
7070

.github/workflows/test.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Test
2+
on:
3+
push:
4+
pull_request:
5+
types: [opened, synchronize, reopened, ready_for_review]
6+
branches:
7+
- master
8+
jobs:
9+
test:
10+
permissions:
11+
contents: read
12+
pull-requests: write
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout code
16+
uses: actions/checkout@v3
17+
18+
- name: Setup Node.js
19+
uses: actions/setup-node@v3
20+
with:
21+
node-version: '23.x'
22+
registry-url: 'https://registry.npmjs.org'
23+
24+
- name: Install pnpm
25+
run: npm install -g pnpm
26+
27+
- name: Install dependencies
28+
run: pnpm install
29+
30+
- name: Test project
31+
run: pnpm run test

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,13 @@
3535
},
3636
"homepage": "https://github.com/HichemTab-tech/react-shared-states#readme",
3737
"devDependencies": {
38+
"@testing-library/dom": "^10.4.1",
39+
"@testing-library/react": "^16.3.0",
3840
"@types/node": "^24.3.0",
3941
"@types/react": "^19.1.11",
4042
"@types/react-dom": "^19.1.7",
4143
"@vitejs/plugin-react": "^5.0.1",
44+
"jsdom": "^26.1.0",
4245
"react": "^19.1.1",
4346
"react-dom": "^19.1.1",
4447
"typescript": "^5.9.2",

0 commit comments

Comments
 (0)