mirror of
https://github.com/logos-messaging/waku-react.git
synced 2026-01-02 22:23:11 +00:00
* add react and typecript * add react, rollup and ts * add waku dependencies * add create hooks, providers and update typings path * extend create hooks and provider with error/loading state * rename to isLoading * create useContentPair hook * add protocols property and bootstrap with remote peers * add useFilterSubscribe * add eslint & fix issues * add prettier & fix * add jest * add husky * add bundlewatch
34 lines
767 B
JavaScript
34 lines
767 B
JavaScript
export default {
|
|
collectCoverageFrom: [
|
|
"**/**/*.{ts,tsx}",
|
|
"!**/**/*.test.{ts,tsx}",
|
|
"!**/src/types/**",
|
|
"!**/node_modules/**",
|
|
"!**/dist/**",
|
|
"!**/__tests__/**",
|
|
],
|
|
projects: [
|
|
{
|
|
clearMocks: true,
|
|
resetMocks: true,
|
|
restoreMocks: true,
|
|
rootDir: ".",
|
|
roots: ["<rootDir>/src"],
|
|
transformIgnorePatterns: ["[/\\\\]node_modules[/\\\\].+\\.(js|jsx)$"],
|
|
displayName: {
|
|
name: "@waku/react",
|
|
color: "cyan",
|
|
},
|
|
testMatch: ["**/__tests__/**/*.(spec|test).ts?(x)"],
|
|
transform: {
|
|
"^.+\\.tsx?$": "@swc/jest",
|
|
},
|
|
testEnvironment: "jsdom",
|
|
},
|
|
],
|
|
watchPlugins: [
|
|
"jest-watch-typeahead/filename",
|
|
"jest-watch-typeahead/testname",
|
|
],
|
|
};
|