Skip to content

Commit 3bffb50

Browse files
committed
Merge commit '3289a81c4fdaaace487535a4f643bdadbebb6f88' into URH-23/use-confirm
2 parents 87cd073 + 3289a81 commit 3bffb50

15 files changed

+17850
-4286
lines changed

.github/workflows/assign-reviewer.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ jobs:
3131
with:
3232
assignees: ${{ github.actor }}
3333
reviewers: ${{ env.SELECTED_REVIEWERS_STR }}
34-
github-token: ${{ secrets.TEST_TOKEN }}
34+
github-token: ${{ secrets.GH_TOKEN }}
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Send message to Slack
2+
3+
on:
4+
pull_request:
5+
types: [review_requested]
6+
pull_request_review:
7+
types: [submitted]
8+
9+
jobs:
10+
notify:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout repository
15+
uses: actions/checkout@v2
16+
17+
- name: Set up Node.js
18+
uses: actions/setup-node@v2
19+
with:
20+
node-version: "16"
21+
22+
- name: Install dependencies
23+
run: npm install
24+
25+
- name: Run Slack Notification Script
26+
env:
27+
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
28+
SLACK_SIGNING_SECRET: ${{ secrets.SLACK_SIGNING_SECRET }}
29+
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
30+
GITHUB_EVENT_PATH: ${{ github.event_path }}
31+
GITHUB_EVENT_NAME: ${{ github.event_name }}
32+
run: node script/sendMessageToSlack.cjs

jest.config.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import type { JestConfigWithTsJest } from 'ts-jest';
2+
3+
const config: JestConfigWithTsJest = {
4+
verbose: true,
5+
testEnvironment: 'jsdom',
6+
transform: {
7+
'^.+\\.(ts|tsx)$': ['ts-jest', { tsconfig: 'tsconfig.spec.json' }],
8+
},
9+
moduleNameMapper: {
10+
'\\.(css|less|sass|scss)$': 'identity-obj-proxy',
11+
},
12+
setupFilesAfterEnv: ['./jest.setup.ts'],
13+
};
14+
15+
export default config;

jest.setup.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import '@testing-library/jest-dom/jest-globals';
2+
import { cleanup } from '@testing-library/react';
3+
4+
beforeAll(() => {
5+
console.log('🌟 Running setup before all tests...');
6+
});
7+
8+
afterAll(() => {
9+
console.log('🔚 Running teardown after all tests...');
10+
cleanup();
11+
});

0 commit comments

Comments
 (0)