File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
packages/react-devtools-extensions/src/__tests__ Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -246,8 +246,7 @@ describe('parseHookNames', () => {
246246 await test ( './__source__/__compiled__/external/ComponentWithCustomHook' ) ; // external source map
247247 } ) ;
248248
249- // TODO (named hooks) The useContext() line number is slightly off
250- xit ( 'should work for external hooks' , async ( ) => {
249+ it ( 'should work for external hooks' , async ( ) => {
251250 async function test ( path ) {
252251 const Component = require ( path ) . Component ;
253252 const hookNames = await getHookNamesForComponent ( Component ) ;
@@ -257,7 +256,9 @@ describe('parseHookNames', () => {
257256 ] ) ;
258257 }
259258
260- await test ( './__source__/ComponentWithExternalCustomHooks' ) ; // original source (uncompiled)
259+ // We can't test the uncompiled source here, because it either needs to get transformed,
260+ // which would break the source mapping, or the import statements will fail.
261+
261262 await test (
262263 './__source__/__compiled__/inline/ComponentWithExternalCustomHooks' ,
263264 ) ; // inline source map
You can’t perform that action at this time.
0 commit comments