feat: automated testing for cloud functions (#6931)
* feat: add token and nft injection * feat: basic tests * fix: get jest configured properly * fix: change timeout * fix: uninstall port ready * fix: readd port ready * fix: local tests work * Update yarn.lock * add lint disable for setup files * fix: update dependencies * fix: basic test suite for nfts/tokens * feat: collection data * fix: make tests more comprehensive * fix: change matches to contains * fix: tests for twitter alt image tag * fix: image gen * fix: add patch-package * fix: update yarn install * feat: basic image gen for nfts and collections * fix: remove vibrant attempt * use watermark asset * dynamically grab color * modularize code and prototype for token preview * refactor code * finalize css * fix color grabber * update tests * fix up css * refactor code a bit more * remove console logs * tests * update tests * update images based on design feedback * network logos * update lint * slight refactoring * more refactoring * fix packages * Update yarn.lock * remove dynamically generated image stuff * cleanup return values * Create README.md * Revert "Create README.md" This reverts commit 7a91c98d384995fba914c9bf9a2fb3072793621f. * First round of feedback * comments * Update test.yml * Update test.yml * Update test.yml * feedback round 2 * final feedback * final final feedback * add coverage and other options * Update test.yml * start typecheck * update cache * update snapshots? * Update jest.config.json * Update jest.config.json * give timeout some buffer * update import * upgrade ts * fix typing for apollo deps * finalize typechecks * downgrade typescript to original version * add cache directory to jest * remove coverage * remove google analytics from tests * review changes
Showing
... | @@ -26,8 +26,9 @@ | ... | @@ -26,8 +26,9 @@ |
"serve": "serve build -l 3000", | "serve": "serve build -l 3000", | ||
"lint": "yarn eslint --ignore-path .gitignore --cache --cache-location node_modules/.cache/eslint/ .", | "lint": "yarn eslint --ignore-path .gitignore --cache --cache-location node_modules/.cache/eslint/ .", | ||
"typecheck": "tsc", | "typecheck": "tsc", | ||
"typecheck:cloud": "tsc -p functions/tsconfig.json", | |||
"test": "craco test", | "test": "craco test", | ||
"test:cloud": "NODE_OPTIONS=--experimental-vm-modules yarn jest functions --watch --config=functions/jest.config.json", | "test:cloud": "NODE_OPTIONS=--experimental-vm-modules yarn jest functions --config=functions/jest.config.json", | ||
"cypress:open": "cypress open --browser chrome --e2e", | "cypress:open": "cypress open --browser chrome --e2e", | ||
"cypress:run": "cypress run --browser chrome --e2e", | "cypress:run": "cypress run --browser chrome --e2e", | ||
"deduplicate": "yarn-deduplicate --strategy=highest" | "deduplicate": "yarn-deduplicate --strategy=highest" | ||
... | @@ -70,7 +71,7 @@ | ... | @@ -70,7 +71,7 @@ |
"devDependencies": { | "devDependencies": { | ||
"@babel/plugin-proposal-private-property-in-object": "^7.21.11", | "@babel/plugin-proposal-private-property-in-object": "^7.21.11", | ||
"@babel/preset-env": "^7.22.7", | "@babel/preset-env": "^7.22.7", | ||
"@cloudflare/workers-types": "^4.20230518.0", | "@cloudflare/workers-types": "^4.20230710.1", | ||
"@craco/craco": "^7.1.0", | "@craco/craco": "^7.1.0", | ||
"@ethersproject/experimental": "^5.4.0", | "@ethersproject/experimental": "^5.4.0", | ||
"@lingui/cli": "^3.9.0", | "@lingui/cli": "^3.9.0", | ||
... | ... |
Please register or sign in to comment