How to use the @jupyterlab/buildutils.run function in @jupyterlab/buildutils

To help you get started, we’ve selected a few @jupyterlab/buildutils examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github jupyterlab / jupyterlab-data-explorer / tests / convert-to-jest.js View on Github external
// Git remove old tests infra
['karma-cov.conf.js', 'karma.conf.js', 'run-test.py'].forEach(fname => {
  utils.run(`git rm -f ./test-${name}/${fname} || true`);
});

// Copy common files from coreutils
['run.py', 'babel.config.js'].forEach(fname => {
  fs.copySync(path.join(coreUtils, fname), path.join(testSrc, fname));
});

// Add new files to git
utils.run(`git add ./test-${name}/run.py ./test-${name}/jest.config.js`);

// Update deps and build test
utils.run('jlpm && jlpm build', { cwd: testSrc });

// Test
utils.run('jlpm test', { cwd: testSrc });
github jupyterlab / jupyterlab / tests / convert-to-jest.js View on Github external
tsData.compilerOptions.types[index] = 'jest';
utils.writeJSONFile(path.join(testSrc, 'tsconfig.json'), tsData);

// Git remove old tests infra
['karma-cov.conf.js', 'karma.conf.js', 'run-test.py'].forEach(fname => {
  utils.run(`git rm -f ./test-${name}/${fname}`);
});

// Copy run.py from coreutils
fs.copySync(path.join(coreUtils, 'run.py'), path.join(testSrc, 'run.py'));

// Add new files to git
utils.run(`git add ./test-${name}/run.py ./test-${name}/jest.config.js`);

// Update deps and build test
utils.run('jlpm && jlpm build', { cwd: testSrc });

// Test
utils.run('jlpm test', { cwd: testSrc });
github jupyterlab / jupyterlab / tests / convert-to-jest.js View on Github external
// Git remove old tests infra
['karma-cov.conf.js', 'karma.conf.js', 'run-test.py'].forEach(fname => {
  utils.run(`git rm -f ./test-${name}/${fname}`);
});

// Copy run.py from coreutils
fs.copySync(path.join(coreUtils, 'run.py'), path.join(testSrc, 'run.py'));

// Add new files to git
utils.run(`git add ./test-${name}/run.py ./test-${name}/jest.config.js`);

// Update deps and build test
utils.run('jlpm && jlpm build', { cwd: testSrc });

// Test
utils.run('jlpm test', { cwd: testSrc });
github jupyterlab / jupyterlab-data-explorer / tests / convert-to-jest.js View on Github external
utils.run(`git rm -f ./test-${name}/${fname} || true`);
});

// Copy common files from coreutils
['run.py', 'babel.config.js'].forEach(fname => {
  fs.copySync(path.join(coreUtils, fname), path.join(testSrc, fname));
});

// Add new files to git
utils.run(`git add ./test-${name}/run.py ./test-${name}/jest.config.js`);

// Update deps and build test
utils.run('jlpm && jlpm build', { cwd: testSrc });

// Test
utils.run('jlpm test', { cwd: testSrc });