Skip to content

Commit

Permalink
ci: build
Browse files Browse the repository at this point in the history
  • Loading branch information
colbr committed Dec 8, 2023
1 parent f9ac640 commit 20e3f70
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
with:
node-version-file: '.nvmrc'
- run: echo '//npm.pkg.github.com/:_authToken=${{secrets.GITHUB_TOKEN}}' >> .npmrc
- run: npm i
- run: npm ci
- run: npm run test
- run: npm run build
- run: npm publish
Expand Down
1 change: 1 addition & 0 deletions .jest/fileMock.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = '';
3 changes: 3 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@ module.exports = {
// A map from regular expressions to module names or to arrays of module names that allow to stub out resources with a single module
moduleNameMapper: {
'\\.(css|scss)$': '<rootDir>/.jest/styleMock.js',
'\\.(jpg|ico|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$':
'<rootDir>/.jest/fileMock.js',

},

// An array of regexp pattern strings, matched against all module paths before considered 'visible' to the module loader
Expand Down
2 changes: 1 addition & 1 deletion src/features/view-proposals/lib/helpers.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ describe('getProposalStatus', () => {
const result = getProposalStatus(
true,
true,
false,
true,
[1, 2],
ProposalState.PENDING,
);
Expand Down

0 comments on commit 20e3f70

Please sign in to comment.