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, Loaders and Typography components #6

Merged
merged 8 commits into from
Aug 13, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
node_modules
dist
design-system
coverage
todo.md
1 change: 0 additions & 1 deletion .storybook/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ module.exports = {
webpackFinal: (config) => {
config.resolve.alias = {
...config.resolve.alias,
"@atoms": path.resolve(__dirname, "../src/atoms"),
"@components": path.resolve(__dirname, "../src/components"),
"@theme": path.resolve(__dirname, "../src/theme"),
"@test-utils": path.resolve(__dirname, "../src/test-utils"),
Expand Down
15 changes: 6 additions & 9 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,14 @@ module.exports = {
verbose: true,
roots: ["<rootDir>/src"],
testEnvironment: "jest-environment-jsdom",
globals: {
ENV: "staging",
},
testMatch: [
"**/__tests__/**/?(*.)+(spec|test).+(ts|tsx|js)",
"**/?(*.)+(spec|test).+(ts|tsx|js)",
],
testMatch: ["**/__tests__/**/?(*.)+(spec|test).+(ts|tsx)", "**/?(*.)+(spec|test).+(ts|tsx)"],
testPathIgnorePatterns: ["<rootDir>/node_modules/"],
moduleDirectories: [path.resolve("./src"), "node_modules"],
collectCoverageFrom: ["src/**/*.{ts,tsx}", "!src/**/*.stories.tsx"],
collectCoverageFrom: [
"src/**/*.{ts,tsx}",
"!src/**/*.stories.tsx",
"!<rootDir>/src/test-utils/**/*",
],
transform: {
"^.+\\.(js|jsx|ts|tsx)$": "babel-jest",
},
Expand All @@ -23,7 +21,6 @@ module.exports = {
"@components(.*)$": "<rootDir>/src/components$1",
"^types(.*)$": "<rootDir>/src/types$1",
"@test-utils(.*)$": "<rootDir>/src/test-utils$1",
"@atoms(.*)$": "<rootDir>/src/atoms$1",
"@theme(.*)$": "<rootDir>/src/theme$1",
"\\.(css)$": "<rootDir>/src/test-utils/cssStub.ts", // Stub CSS files
},
Expand Down
Loading