Skip to content

Commit

Permalink
Merge pull request #10 from crs-k:fix-tests
Browse files Browse the repository at this point in the history
Fix-tests
  • Loading branch information
crs-k authored Jan 12, 2022
2 parents e649731 + 05001bf commit 854f301
Show file tree
Hide file tree
Showing 9 changed files with 963 additions and 274 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,7 @@ jobs:
- uses: actions/checkout@v2
- uses: ./
with:
milliseconds: 1000
repo-token: ${{ github.token }}
tag_name: 'refs/tags/v0.0.0'
draft: true
prerelease: false
3 changes: 2 additions & 1 deletion __tests__/main.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,9 @@ describe('Create Release', () => {
prerelease: false,
target_commitish: 'sha'
})
console.log(run(), run(), run(), run())
console.log(run())
})

/*
test('Draft release is created', async () => {
core.getInput = jest
Expand Down
10 changes: 6 additions & 4 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

21 changes: 12 additions & 9 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
module.exports = {
clearMocks: true,
moduleFileExtensions: ['js', 'ts'],
testMatch: ['**/*.test.ts'],
transform: {
'^.+\\.ts$': 'ts-jest'
},
verbose: true
}
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
// Sync object
const config = {
verbose: true,
clearMocks: true,
testMatch: ['**/*.test.ts'],
transform: {
'^.+\\.ts?$': 'ts-jest',
},
};
exports.default = config;
Loading

0 comments on commit 854f301

Please sign in to comment.