This repo contains multiple test playgrounds:
- browser
- cjs
- esm
- vite-cjs
- vite-esm
- webpack-cjs
You should checkout this project beside your faker folder, so the pnpm link in package.json is correctly resolved.
By default, the project uses the latest version of faker, but you can switch to the local clone by:
- editing the
package.json - replacing
"overrides-for-dev"with"overrides" - running
pnpm install
Make sure you have build the faker project so there is a dist folder.
Please run pnpm install once before executing any of the following commands.
You can run:
pnpm -r --workspace-concurrency 1 testto testcjsandesmpnpm -r --workspace-concurrency 1 test:jsto test only JavaScript files forcjsandesmpnpm -r --workspace-concurrency 1 test:tsto test only TypeScript files forcjsandesmpnpm run test:cjsto test onlycjspnpm run test:esmto test onlyesmpnpm run buildto build/bundle all playgrounds
To test the browser playground you need to run pnpm -r serve and then open the http://localhost:3000/ in your browser.