-
Notifications
You must be signed in to change notification settings - Fork 709
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: remove shelljs from all tests (#769)
- Loading branch information
Showing
22 changed files
with
438 additions
and
395 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,3 +1,13 @@ | ||
{ | ||
"extends": "standard" | ||
} | ||
"extends": "standard", | ||
"overrides": [ | ||
{ | ||
"files": [ | ||
"packages/*/test{,/*}.js" | ||
], | ||
"env": { | ||
"mocha": true | ||
} | ||
} | ||
] | ||
} |
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
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
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,37 +1,31 @@ | ||
'use strict' | ||
const conventionalChangelogCore = require('conventional-changelog-core') | ||
const config = require('../') | ||
const mocha = require('mocha') | ||
const describe = mocha.describe | ||
const it = mocha.it | ||
const before = mocha.before | ||
const expect = require('chai').expect | ||
const gitDummyCommit = require('git-dummy-commit') | ||
const shell = require('shelljs') | ||
const through = require('through2') | ||
const tmp = require('tmp') | ||
const { gitInit, gitDummyCommit } = require('../../../tools/test-tools') | ||
|
||
tmp.setGracefulCleanup() | ||
|
||
const oldDir = process.cwd() | ||
|
||
describe('atom preset', function () { | ||
before(function () { | ||
shell.config.resetForTesting() | ||
shell.cd(__dirname) | ||
shell.rm('-rf', 'tmp') | ||
shell.mkdir('tmp') | ||
shell.cd('tmp') | ||
shell.mkdir('git-templates') | ||
shell.exec('git init --template=./git-templates') | ||
before(() => { | ||
const tmpDir = tmp.dirSync() | ||
process.chdir(tmpDir.name) | ||
gitInit() | ||
gitDummyCommit([':arrow_down: exception-reporting']) | ||
if (process.platform !== 'win32') { | ||
// we need to escape backtick for bash but not for windows | ||
// probably this should be done in git-dummy-commit or shelljs | ||
gitDummyCommit([':bug: \\`updateContentDimensions\\` when model changes']) | ||
} else { | ||
gitDummyCommit([':bug: `updateContentDimensions` when model changes']) | ||
} | ||
gitDummyCommit([':bug: `updateContentDimensions` when model changes']) | ||
gitDummyCommit(['Merge pull request #7881 from atom/bf-upgrade-babel-to-5.6.17']) | ||
gitDummyCommit([':arrow_up: [email protected]']) | ||
gitDummyCommit([':arrow_up: one-dark/[email protected]']) | ||
}) | ||
|
||
after(() => { | ||
process.chdir(oldDir) | ||
}) | ||
|
||
it('should work if there is no semver tag', function (done) { | ||
conventionalChangelogCore({ | ||
config: config | ||
|
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
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
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.