-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add tailwind config and update webpack config * Add colors variables * Add popup variables * Move PostCSS config to webpack config * Add initial button component * Update jest config and setup files * Add initial button tests * Fix error background * Add destructive variant * Update button tests * Add test job to workflows and update CI test script * Fix test name
- Loading branch information
1 parent
0e8d811
commit 8386c32
Showing
14 changed files
with
300 additions
and
225 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.