Open Toumash opened 2 years ago
Writing the test in the src\manifest-input\__tests__\manifest__hook--generateBundle.test.ts
should be easier that this testing, but i cannot get it to run
yarn test
yarn run v1.22.17
$ cross-env TS_NODE_COMPILER_OPTIONS={\"module\":\"commonjs\"} mocha --file tests/unit/setup.ts --require ts-node/register --require tsconfig-paths/register
TSError: ⨯ Unable to compile TypeScript:
src/utils/helpers.ts:84:25 - error TS2571: Object is of type 'unknown'.
84 handleError(error.message);
Issue with details can be found here: https://github.com/StarkShang/vite-plugin-chrome-extension/issues/22
New regex for checking if code is using the management module
There is something more missing, because adding this code to
examples\background\dist\background.js
and running the build
still adds
management
intoexamples\background\dist\manifest.json
I'm still unsure how exactly code in file
src\manifest-input\manifest-parser\permissions.ts
is being used