Skip to content

Commit

Permalink
move old app to 3.10
Browse files Browse the repository at this point in the history
  • Loading branch information
NullVoxPopuli committed Oct 9, 2019
1 parent 487c08c commit 2849e1c
Show file tree
Hide file tree
Showing 71 changed files with 19 additions and 4 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
23 changes: 19 additions & 4 deletions test/run-test.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
/* eslint-disable no-console */
const versions = ['3.10', '3.13'];

const { spawn } = require('child_process');
const execa = require('execa');
const path = require('path');

// resolved from the root of the project
const inputDir = path.resolve('./test/fixtures/input');
const execOpts = { cwd: inputDir, stderr: 'inherit' };
async function runTestForVersion(version) {
console.log(`
Running Integration Test for Ember ${version}
`);

// resolved from the root of the project
const inputDir = path.resolve(`./test/fixtures/${version}/input`);
const execOpts = { cwd: inputDir, stderr: 'inherit' };

(async () => {
console.log('installing deps');

await execa('rm', ['-rf', 'node_modules'], execOpts);
Expand Down Expand Up @@ -48,5 +53,15 @@ const execOpts = { cwd: inputDir, stderr: 'inherit' };
}

console.log('codemod ran successfully! 🎉');
}


(async () => {
for (let version of versions) {
await runTestForVersion(version);
}

process.exit(0);
})();


0 comments on commit 2849e1c

Please sign in to comment.