-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #169 from embroider-build/update-fixturify
update fixturify project
- Loading branch information
Showing
3 changed files
with
1,324 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import fs from 'fs'; | ||
import path, { resolve } from 'path'; | ||
import Project from 'fixturify-project'; | ||
import { Project } from 'fixturify-project'; | ||
import { execa } from 'execa'; | ||
import ejs from 'ejs'; | ||
|
||
|
@@ -30,10 +30,10 @@ expect.extend({ | |
describe('main binary', function () { | ||
let project; | ||
|
||
beforeEach(function () { | ||
beforeEach(async function () { | ||
project = new Project('some-thing-cool', '0.1.0'); | ||
project.writeSync(); | ||
process.chdir(path.join(project.root, project.name)); | ||
await project.write(); | ||
process.chdir(project.baseDir); | ||
|
||
// ensure an EDITOR is present | ||
process.env.EDITOR = '/bin/whatever'; | ||
|
@@ -62,7 +62,7 @@ describe('main binary', function () { | |
|
||
it('does not modify if an existing prefix exists in CHANGELOG.md', async function () { | ||
project.files['CHANGELOG.md'] = `# ChangeLog\n\n## v1.2.0\n* Foo bar`; | ||
project.writeSync(); | ||
await project.write(); | ||
|
||
await exec(['--no-install', '--no-label-updates']); | ||
|
||
|
@@ -74,7 +74,7 @@ describe('main binary', function () { | |
it('does not modify if an existing prefix exists anywhere on the line and has different casing in CHANGELOG.md', async function () { | ||
project.files['CHANGELOG.md'] = | ||
`# the most mighty CHANgELOG you have ever seen\n\n## v1.2.0\n* Foo bar`; | ||
project.writeSync(); | ||
await project.write(); | ||
|
||
await exec(['--no-install', '--no-label-updates']); | ||
|
||
|
@@ -100,7 +100,7 @@ describe('main binary', function () { | |
fetch = +refs/heads/*:refs/remotes/origin/*`, | ||
}; | ||
|
||
project.writeSync(); | ||
await project.write(); | ||
|
||
await exec(['--no-install', '--no-label-updates']); | ||
|
||
|
@@ -140,7 +140,7 @@ describe('main binary', function () { | |
|
||
it('does not update devDependencies if release-plan range is greater', async function () { | ||
project.addDevDependency('release-plan', '^999.999.999'); | ||
project.writeSync(); | ||
await project.write(); | ||
|
||
await exec(['--no-install', '--no-label-updates']); | ||
|
||
|
@@ -265,15 +265,15 @@ describe('main binary', function () { | |
}); | ||
|
||
describe('RELEASE.md', function () { | ||
beforeEach(() => { | ||
beforeEach(async () => { | ||
project.files['.git'] = { | ||
config: ` | ||
[remote "origin"] | ||
url = [email protected]:mansona/create-release-plan-setup.git | ||
fetch = +refs/heads/*:refs/remotes/origin/*`, | ||
}; | ||
|
||
project.writeSync(); | ||
await project.write(); | ||
}); | ||
|
||
function expectedReleaseContents() { | ||
|
@@ -309,7 +309,7 @@ describe('main binary', function () { | |
|
||
it('adds a basic header in changelog if prefix does not exist in CHANGELOG.md', async function () { | ||
project.files['CHANGELOG.md'] = `## v1.2.0\n* Foo bar`; | ||
project.writeSync(); | ||
await project.write(); | ||
|
||
await exec(['--no-install', '--no-label-updates']); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.