Skip to content

Commit b8599b8

Browse files
committed
Fix the install script to use cjs
1 parent 93476ce commit b8599b8

1 file changed

Lines changed: 1 addition & 11 deletions

File tree

handwritten/bigtable/system-test/install.ts

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -39,21 +39,11 @@ describe('📦 pack-n-play test', () => {
3939
this.timeout(300000);
4040
const options = {
4141
packageDir: process.cwd(),
42-
sample: {
43-
description: 'JavaScript user can use the library',
44-
// Inject the reference directive at the top of the code
45-
// The reference header is needed so packnplay tests recognize require
46-
packageDir: process.cwd(),
4742
sample: {
4843
description: 'JavaScript user can use the library',
4944
cjs: readFileSync(
5045
'./system-test/fixtures/sample/src/index.js',
51-
).toString(),
52-
},
53-
'/// <reference types="node" />\n' +
54-
readFileSync('./system-test/fixtures/sample/src/index.js').toString(),
55-
// Still needed so the package actually gets installed in the temp environment
56-
dependencies: ['@types/node'], // This dependency solves a packnplay error so that require can be recognized.
46+
).toString()
5747
},
5848
};
5949
await packNTest(options);

0 commit comments

Comments
 (0)