forked from pustovitDmytro/semantic-release-telegram
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Chore: (test) working with tmp dir for test factory
- Loading branch information
1 parent
e195b58
commit cfeafbc
Showing
4 changed files
with
26 additions
and
2 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 |
---|---|---|
|
@@ -3,4 +3,5 @@ node_modules | |
etc/*.js | ||
etc/*.json | ||
lib/* | ||
coverage/* | ||
coverage/* | ||
tmp/* |
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 |
---|---|---|
|
@@ -3,4 +3,5 @@ tests | |
.travis.yml | ||
.eslintrc | ||
.eslintignore | ||
.babelrc | ||
.babelrc | ||
tmp |
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import fse from 'fs-extra'; | ||
import { tmpFolder } from './constants'; | ||
|
||
export default class Test { | ||
async setTmpFolder() { | ||
await fse.ensureDir(tmpFolder); | ||
} | ||
async cleanTmpFolder() { | ||
await fse.remove(tmpFolder); | ||
} | ||
} | ||
|
||
export { | ||
tmpFolder | ||
}; |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import path from 'path'; | ||
|
||
const tmpFolder = path.join(__dirname, '../tmp/tests'); | ||
|
||
export { | ||
tmpFolder | ||
}; |