Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
it('Testing Ok', async ({ dir }) => {
sfs.smartWrite(path.join(dir, '.roboconfig.json'), {});
sfs.smartWrite(
path.join(dir, '.eslintrc.json'),
sfs.smartRead(path.join(__dirname, '..', '.eslintrc.json'))
);
fs.symlinkSync(
path.join(__dirname, '..', 'node_modules'),
path.join(dir, 'node_modules')
);
sfs.smartWrite(path.join(dir, 'package.json'), {
name: 'pkg',
dependencies: {
'@babel/register': '1.0.0'
},
main: 'index.js'
});
expect(await gardener({ cwd: dir })).to.equal(undefined);
});
beforeEach(({ dir }) => {
sfs.smartWrite(
path.join(dir, '.eslintrc.json'),
sfs.smartRead(path.join(__dirname, '..', '..', '.eslintrc.json'))
);
fs.symlinkSync(
path.join(__dirname, '..', '..', 'node_modules'),
path.join(dir, 'node_modules')
);
});