notebook/app/jest-setup.js

14 lines
371 B
JavaScript
Raw Normal View History

2021-01-29 06:52:26 +08:00
const fs = require('fs');
const path = require('path');
const rimraf = require('rimraf');
module.exports = async () => {
const data = path.join(__dirname, './test/data');
const example = path.join(__dirname, '../binder/example.ipynb');
const dest = path.join(data, 'example.ipynb');
rimraf.sync(data);
fs.mkdirSync(data);
fs.copyFileSync(example, dest);
};