@agility/plenum-ui 2.1.11 → 2.1.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.json +4 -4
- package/.github/workflows/run_unit_test.yml +28 -0
- package/.github/workflows/type-check.yml +28 -0
- package/.prettierrc +11 -11
- package/dist/index.js +1 -1
- package/dist/index.js.map +3 -3
- package/jest.config.ts +18 -0
- package/jest.setup.ts +1 -0
- package/package.json +13 -3
- package/setupTests.js +1 -0
- package/stories/atoms/buttons/Button/tests/Button.test.tsx +115 -0
- package/stories/molecules/inputs/InputCounter/InputCounter.tsx +6 -6
- package/stories/molecules/inputs/InputLabel/InputLabel.tsx +15 -15
- package/stories/molecules/inputs/NestedInputButton/NestedInputButton.stories.tsx +10 -14
- package/stories/molecules/inputs/textArea/TextArea.tsx +34 -34
- package/stories/organisms/AnimatedLabelTextArea/AnimatedLabelTextArea.stories.tsx +9 -9
- package/stories/organisms/FormInputWithAddons/FormInputWithAddons.stories.tsx +8 -11
- package/tsconfig.json +28 -27
- package/utils/types.ts +2 -3
- package/vitest.config.js +11 -0
package/.eslintrc.json
CHANGED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
name: Unit tests
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- main # Run tests on pushes to the main branch
|
|
7
|
+
pull_request:
|
|
8
|
+
branches:
|
|
9
|
+
- main # Run tests on pull requests to the main branch
|
|
10
|
+
|
|
11
|
+
jobs:
|
|
12
|
+
test:
|
|
13
|
+
runs-on: ubuntu-latest
|
|
14
|
+
|
|
15
|
+
steps:
|
|
16
|
+
- name: Checkout code
|
|
17
|
+
uses: actions/checkout@v3 # Checks out the repository code
|
|
18
|
+
|
|
19
|
+
- name: Set up Node.js
|
|
20
|
+
uses: actions/setup-node@v3
|
|
21
|
+
with:
|
|
22
|
+
node-version: "18" # Specify the Node.js version you want
|
|
23
|
+
|
|
24
|
+
- name: Install dependencies
|
|
25
|
+
run: yarn install # Installs dependencies using Yarn
|
|
26
|
+
|
|
27
|
+
- name: Run tests
|
|
28
|
+
run: yarn test # Runs the tests
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
name: Type Check
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- main # Run type checking on pushes to the main branch
|
|
7
|
+
pull_request:
|
|
8
|
+
branches:
|
|
9
|
+
- main # Run type checking on pull requests to the main branch
|
|
10
|
+
|
|
11
|
+
jobs:
|
|
12
|
+
type-check:
|
|
13
|
+
runs-on: ubuntu-latest
|
|
14
|
+
|
|
15
|
+
steps:
|
|
16
|
+
- name: Checkout code
|
|
17
|
+
uses: actions/checkout@v3 # Checks out the repository code
|
|
18
|
+
|
|
19
|
+
- name: Set up Node.js
|
|
20
|
+
uses: actions/setup-node@v3
|
|
21
|
+
with:
|
|
22
|
+
node-version: "18" # Specify the Node.js version you want
|
|
23
|
+
|
|
24
|
+
- name: Install dependencies
|
|
25
|
+
run: yarn install # Or `npm install` if you're using npm
|
|
26
|
+
|
|
27
|
+
- name: Run TypeScript type check
|
|
28
|
+
run: npx tsc --noEmit --skipLibCheck
|
package/.prettierrc
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
2
|
+
"singleQuote": false,
|
|
3
|
+
"printWidth": 120,
|
|
4
|
+
"editor.formatOnSave": true,
|
|
5
|
+
"proseWrap": "preserve",
|
|
6
|
+
"tabWidth": 4,
|
|
7
|
+
"requireConfig": false,
|
|
8
|
+
"useTabs": true,
|
|
9
|
+
"trailingComma": "none",
|
|
10
|
+
"bracketSpacing": true,
|
|
11
|
+
"jsxBracketSameLine": false,
|
|
12
|
+
"semi": true
|
|
13
13
|
}
|