File tree Expand file tree Collapse file tree
handwritten/bigtable/system-test Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -41,13 +41,11 @@ describe('📦 pack-n-play test', () => {
4141 packageDir : process . cwd ( ) ,
4242 sample : {
4343 description : 'JavaScript user can use the library' ,
44- ts : readFileSync (
45- './system-test/fixtures/sample/src/index.js' ,
44+ // Inject the reference directive at the top of the code
45+ ts : `/// <reference types="node" />\n` + readFileSync (
46+ './system-test/fixtures/sample/src/index.js' ,
4647 ) . toString ( ) ,
47- // This tells pack-n-play to run `npm install @types/node`
48- // inside the isolated testing environment before running tsc.
49- // This is so that the tests don't produce the error that says
50- // `Cannot find name 'require'.`
48+ // Still needed so the package actually gets installed in the temp environment
5149 dependencies : [ '@types/node' ] ,
5250 } ,
5351 } ;
You can’t perform that action at this time.
0 commit comments