// Code generated by convertFourslash; DO NOT EDIT. // To modify this test, run "npm run makemanual goToSource7_conditionallyMinified" package fourslash_test import ( "testing" "github.com/microsoft/typescript-go/internal/fourslash" "github.com/microsoft/typescript-go/internal/testutil" ) func TestGoToSource7_conditionallyMinified(t *testing.T) { fourslash.SkipIfFailing(t) t.Parallel() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @lib: es5 // @moduleResolution: bundler // @Filename: /home/src/workspaces/project/node_modules/react/package.json { "name": "react", "version": "16.8.6", "main": "index.js" } // @Filename: /home/src/workspaces/project/node_modules/react/index.js 'use strict'; if (process.env.NODE_ENV === 'production') { module.exports = require('./cjs/react.production.min.js'); } else { module.exports = require('./cjs/react.development.js'); } // @Filename: /home/src/workspaces/project/node_modules/react/cjs/react.production.min.js 'use strict';exports./*production*/useState=function(a){};exports.version='16.8.6'; // @Filename: /home/src/workspaces/project/node_modules/react/cjs/react.development.js 'use strict'; if (process.env.NODE_ENV !== 'production') { (function() { function useState(initialState) {} exports./*development*/useState = useState; exports.version = '16.8.6'; }()); } // @Filename: /home/src/workspaces/project/index.ts import { [|/*start*/useState|] } from 'react';` f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content) defer done() f.MarkTestAsStradaServer() f.VerifyBaselineGoToSourceDefinition(t, "start") }