File tree Expand file tree Collapse file tree 5 files changed +12
-8
lines changed Expand file tree Collapse file tree 5 files changed +12
-8
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ module.exports = {
22 preset : 'ts-jest' ,
33 testEnvironment : 'jsdom' ,
44 testPathIgnorePatterns : [ 'example' , 'node_modules' ] ,
5- setupFiles : [ '@testing-library/react/dont-cleanup-after-each' ] ,
65 moduleNameMapper : {
76 '\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$' :
87 '<rootDir>/__mocks__/fileMock.js' ,
File renamed without changes.
Original file line number Diff line number Diff line change @@ -3,12 +3,12 @@ import '@testing-library/jest-dom';
33import Main from '../index' ;
44
55describe ( 'My Component' , ( ) => {
6- it ( 'renders displays the passed message' , async ( ) => {
6+ it ( 'displays the passed message' , async ( ) => {
77 const { findByText } = render ( < Main message = "Hello World" /> ) ;
88 const content = await findByText ( 'Hello World' ) ;
99 expect ( content ) . toBeTruthy ( ) ;
1010 } ) ;
11- it ( 'renders displays the default message' , async ( ) => {
11+ it ( 'displays the default message' , async ( ) => {
1212 const { findByText } = render ( < Main /> ) ;
1313 const content = await findByText ( 'No Message' ) ;
1414 expect ( content ) . toBeTruthy ( ) ;
Original file line number Diff line number Diff line change 1212/* eslint-disable @typescript-eslint/no-var-requires */
1313/* eslint-disable @typescript-eslint/no-explicit-any */
1414
15+ // eslint-disable-next-line dot-notation
1516if ( process . env [ 'RTL_SKIP_POSTINSTALL' ] ) {
1617 console . log ( 'Skipping post-install process...' ) ;
1718 process . exit ( 0 ) ;
Original file line number Diff line number Diff line change 11{
22 "compilerOptions" : {
33 "target" : " es5" ,
4- "module" : " ES6 " ,
4+ "module" : " ESNext " ,
55 "lib" : [
66 " ES2017" ,
77 " ES7" ,
1010 ],
1111 "declaration" : true ,
1212 "declarationDir" : " dist" ,
13+ "declarationMap" : true ,
14+ "downlevelIteration" : false ,
1315 "outDir" : " dist" ,
1416 "sourceMap" : true ,
1517 "strict" : true ,
2224 "resolveJsonModule" : true ,
2325 "jsx" : " react-jsx" ,
2426 "baseUrl" : " ./src" ,
27+ "paths" : {
28+ "tslib" : [
29+ " node_modules/tslib/tslib.d.ts"
30+ ]
31+ },
2532 "plugins" : [
2633 {
2734 "name" : " typescript-plugin-css-modules"
2835 }
2936 ],
3037 },
3138 "include" : [
32- " src/**/*" ,
33- " Globals.d.ts"
39+ " src/**/*"
3440 ],
3541 "exclude" : [
3642 " node_modules" ,
3743 " dist" ,
38- " src/**/*.spec.tsx" ,
39- " src/**/*.test.tsx"
4044 ]
4145}
You can’t perform that action at this time.
0 commit comments