-
Notifications
You must be signed in to change notification settings - Fork 105
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Chore: bumping packages and setting up React-Testing-Library correctl…
…y for Namadillo (#1067) * feat(namadillo): setting up tests correctly * feat: adding rank with tests * chore: bumping react version * chore: removing namadillo webpack config * chore: bumping vite version * chore: bumping eslint version * chore: bumping prettier eslint version * chore: bumping react version * chore: configuring jest with react-testing-library for Namadillo * feat(namadillo): writing some tests for ValidatorCard * chore: adding @typescript-eslint/no-require-imports rule * fix: fixing references to theme.ts * fix: fixing linting errors * fix: fixing eslintrc project config * fix: fixing build errors for namadillo / extension * chore: keeping some types on root package.json * chore: moving dev dependencies used in many packages / apps to project root * feat: upgrading prettier * refactor: removing empty arguments from catch
- Loading branch information
1 parent
0e223ad
commit 0946bc3
Showing
64 changed files
with
7,442 additions
and
17,127 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
*.css | ||
*.svg | ||
webpack.config.js | ||
.eslintrc.js | ||
tsconfig.json |
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 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 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 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 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
import "styled-components"; | ||
import { DesignConfiguration } from "@namada/utils"; | ||
import "styled-components"; | ||
interface IPalette { | ||
main: string; | ||
contrastText: string; | ||
} | ||
declare module "styled-components" { | ||
// eslint-disable-next-line @typescript-eslint/no-empty-interface | ||
// eslint-disable-next-line | ||
export interface DefaultTheme extends DesignConfiguration {} | ||
} |
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 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 |
---|---|---|
@@ -1,10 +1,17 @@ | ||
import type { Config } from "@jest/types"; | ||
// Sync object | ||
const config: Config.InitialOptions = { | ||
verbose: true, | ||
transform: { | ||
"^.+\\.tsx?$": "ts-jest", | ||
}, | ||
import { createDefaultPreset, pathsToModuleNameMapper } from "ts-jest"; | ||
import { compilerOptions } from "../../tsconfig.base.json"; | ||
|
||
/** @type {import('ts-jest').JestConfigWithTsJest} */ | ||
module.exports = { | ||
...createDefaultPreset(), | ||
roots: ["src"], | ||
displayName: "Namadillo", | ||
testEnvironment: "jsdom", | ||
modulePathIgnorePatterns: ["e2e-tests"], | ||
moduleDirectories: ["src", "node_modules"], | ||
verbose: true, | ||
moduleNameMapper: pathsToModuleNameMapper(compilerOptions.paths, { | ||
prefix: "<rootDir>/src/", | ||
}), | ||
setupFilesAfterEnv: ["<rootDir>/src/setupTests.ts"], | ||
}; | ||
export default config; |
Oops, something went wrong.
0946bc3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉 Published on https://namada-interface-dev.netlify.app as production
🚀 Deployed on https://66dd588fb17828b4a1f3d830--namada-interface-dev.netlify.app