Lines Matching refs:js
77 … a simple test for **App.js**. Create a test file for it and call it **App.test.js**. Jest identif…
81 ```js App.test.js
111 '__tests__/components/button.test.js',
112 '__tests__/navigation/mainstack.test.js',
113 '__tests__/screens/home.test.js',
114 'src/components/button.js',
115 'src/navigation/mainstack.js',
116 'src/screens/home.js',
124 <FileTree files={['src/components/button.js', 'src/components/__tests__/button.test.js']} />
126 …onents** directory, the import path of `<Button>` in the the **button.test.js** will be `../button…
132 'src/components/button.js',
133 'src/components/button.style.js',
134 'src/components/button.test.js',
144 …snapshot test for `<App />`, add the following code snippet in the `describe()` in **App.test.js**:
146 ```js App.test.js
166 "**/*.{js,jsx}",
169 "!**/babel.config.js",
170 "!**/jest.setup.js"
175 …js** and **.jsx** files that are not inside the **coverage** or **node_modules** directories. It a…