Skip to content

Commit

Permalink
fix: simplify npm scripts for test and coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
adjisb committed Jun 9, 2023
1 parent 51a8b08 commit d2b5afd
Show file tree
Hide file tree
Showing 2 changed files with 843 additions and 34 deletions.
8 changes: 3 additions & 5 deletions packages/giveaway/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@sandbox-smart-contracts/giveaway",
"version": "0.0.1",
"description": "Contracts used to airdrop tokens",
"description": "Contracts used for token claims",
"license": "MIT",
"main": "index.js",
"directories": {
Expand All @@ -12,8 +12,8 @@
"lint:fix": "eslint --fix \"**/*.{js,ts}\" && solhint --fix \"contracts/**/*.sol\"",
"format": "prettier --check \"**/*.{ts,js,sol}\"",
"format:fix": "prettier --write \"**/*.{ts,js,sol}\"",
"test": "dotenv -- cross-env NODE_OPTIONS=\"--max-old-space-size=8192 node --unhandled-rejections=strict\" HARDHAT_COMPILE=true NODE_ENV=test hardhat test",
"coverage": "dotenv -- cross-env NODE_OPTIONS=\"--max-old-space-size=8192 node --unhandled-rejections=strict\" HARDHAT_COMPILE=true NODE_ENV=test hardhat coverage --testfiles 'test/*.ts''test/*.js'",
"test": "hardhat test",
"coverage": "hardhat coverage --testfiles 'test/*.ts''test/*.js'",
"hardhat": "hardhat",
"compile": "hardhat compile"
},
Expand Down Expand Up @@ -50,9 +50,7 @@
"@typescript-eslint/eslint-plugin": "^5.59.8",
"@typescript-eslint/parser": "^5.59.8",
"chai": "^4.3.7",
"cross-env": "^7.0.3",
"dotenv": "^16.1.3",
"dotenv-cli": "^7.2.1",
"eslint": "^8.41.0",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-mocha": "^10.1.0",
Expand Down
Loading

1 comment on commit d2b5afd

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage for this commit

100.00%

Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
packages/giveaway/contracts
   ERC2771Handler.sol100%100%100%100%
   SignedMultiGiveaway.sol100%100%100%100%
   SignedMultiGiveawayBase.sol100%100%100%100%
packages/giveaway/contracts/test
   FakeMintableERC1155.sol100%100%100%100%
   FakeMintableERC20.sol100%100%100%100%
   FakeMintableERC721.sol100%100%100%100%

Please sign in to comment.