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: adds tests for packing process
- Loading branch information
1 parent
0b6e984
commit 9b9602d
Showing
8 changed files
with
36 additions
and
8 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 |
---|---|---|
|
@@ -6,4 +6,5 @@ lib/* | |
coverage/* | ||
tmp/* | ||
logs/* | ||
*.log | ||
*.log | ||
*.tgz |
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
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,5 @@ | ||
#!/bin/bash | ||
rm -rf tmp/package | ||
PACKAGE="$(npm pack 2>&1 | tail -1)" | ||
mkdir -p tmp | ||
tar -xvzf $PACKAGE -C 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
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,4 +1,7 @@ | ||
module.exports = process.env.BUILD !== '0' | ||
? require('../lib') | ||
: require('../src'); | ||
import path from 'path'; | ||
|
||
const isBuild = process.env.BUILD && [ '1', 'true' ].includes(process.env.BUILD); | ||
const entry = process.env.ENTRY && path.resolve(process.env.ENTRY); | ||
|
||
module.exports = entry && require(entry) || isBuild && require('../lib') || require('../src'); | ||
|
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,8 +1,8 @@ | ||
import { assert } from 'chai'; | ||
import logger from '../entry'; | ||
import { verifyStdout } from '../utils'; | ||
import entry from '../entry'; | ||
|
||
suite('Configurations'); | ||
|
||
test('Default configuration', function () { | ||
assert.exists(entry); | ||
}); |