Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add button component #69

Merged
merged 13 commits into from
Jan 8, 2024
Merged
13 changes: 13 additions & 0 deletions .github/workflows/pr-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,16 @@ jobs:
name: ${{ github.event.pull_request.number }}-${{ matrix.browser }}
path: dist/${{ matrix.browser }}/${{ matrix.browser }}.zip
if-no-files-found: error

test:
name: Test
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Environment setup
uses: ./.github/actions/setup

- name: Test
run: pnpm test:ci
13 changes: 13 additions & 0 deletions .github/workflows/sanity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,16 @@ jobs:
- name: Build
shell: bash
run: pnpm build ${{ matrix.browser}}

test:
name: Test
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Environment setup
uses: ./.github/actions/setup

- name: Test
run: pnpm test:ci
216 changes: 0 additions & 216 deletions jest.config.js

This file was deleted.

28 changes: 28 additions & 0 deletions jest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
export default {
preset: 'ts-jest',
clearMocks: true,
displayName: 'WM Extension',
collectCoverageFrom: [
'src/**/*.test.{js,jsx,ts,tsx}',
'!src/**/*.css',
'!src/**/*.svg',
'!src/**/*.d.ts',
'!src/**/index.ts',
],
coverageDirectory: 'coverage',
coverageProvider: 'v8',
maxWorkers: '50%',
moduleFileExtensions: ['js', 'jsx', 'json', 'ts', 'tsx'],
moduleNameMapper: {
'@/(.*)': '<rootDir>/src/$1',
},
setupFilesAfterEnv: ['./jest.setup.ts'],
testMatch: ['**/__tests__/**/*.[jt]s?(x)', '**/?(*.)+(spec|test).[tj]s?(x)'],
testEnvironment: 'jsdom',
testPathIgnorePatterns: ['<rootDir>/node_modules/', '<rootDir>/jest.config.ts'],
transform: {
'^.+\\.(js|jsx)$': 'babel-jest',
'^.+\\.(ts|tsx)?$': 'ts-jest',
'\\.(css|less|scss|sass|svg)$': 'jest-transform-stub',
},
}
File renamed without changes.
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,12 @@
"lint:prettier": "prettier \"**/*.(md|json|yml)\" --ignore-path .gitignore --check",
"lint:type": "tsc --noEmit",
"local-signatures": "pnpm tsx --watch ./local-signatures/index.ts",
"test": "jest --maxWorkers=2",
"ci:test": "run-s \" test --ci --reporters=\"default\" --reporters=\"github-actions\" \""
"test": "jest --maxWorkers=2 --passWithNoTests",
"test:ci": "pnpm test -- --reporters=default --reporters=github-actions"
},
"dependencies": {
"axios": "^1.5.1",
"class-variance-authority": "^0.7.0",
"clean-webpack-plugin": "^4.0.0",
"copy-webpack-plugin": "^11.0.0",
"core-js": "^3.32.1",
Expand All @@ -36,6 +37,7 @@
"sass": "^1.66.1",
"sass-loader": "^13.3.2",
"style-loader": "^3.3.3",
"tailwind-merge": "^2.1.0",
"terser-webpack-plugin": "^5.3.9",
"uuid": "^9.0.1",
"webextension-polyfill": "^0.10.0",
Expand Down Expand Up @@ -94,6 +96,7 @@
"postcss-loader": "^7.3.3",
"prettier": "^3.0.3",
"tailwindcss": "^3.4.0",
"ts-jest": "^29.1.1",
"ts-loader": "^9.4.4",
"ts-node": "^10.9.2",
"tsx": "^4.6.2",
Expand Down
Loading