$ pnpm --filter devextreme-cli run docker:build$ pnpm --filter devextreme-cli run docker:runTo run tests for all target frameworks, use the following command:
$ pnpm run testThis script creates test applications in the testing/sandbox folder, starts a web server for each framework, and runs the snapshot tests.
You can find test results in the following folders:
packages/devextreme-cli/testing/__tests__/__image_snapshots__- reference snapshotspackages/devextreme-cli/testing/__tests__/__diff_snapshots__- diff snapshots for failed testspackages/devextreme-cli/testing/sandbox/logs- server logs for each framework
pnpm run create-templatepnpm run create-template -e angular
pnpm run create-template -e react
pnpm run create-template -e react-ts
pnpm run create-template -e vue-v3pnpm run lint-templatepnpm run lint-template -e angular
pnpm run lint-template -e react
pnpm run lint-template -e react-ts
pnpm run lint-template -e vue-v3pnpm run test-templatepnpm run test-template -e angular
pnpm run test-template -e react
pnpm run test-template -e react-ts
pnpm run test-template -e vue-v3pnpm run test-devpnpm run test -t angular
pnpm run test -t react
pnpm run test -t react-ts
pnpm run test -t vue-v3To replace etalon image just remove it from packages/devextreme-cli/testing/__tests__/__image_snapshots__ folder and run tests again
Modifying an application template directly is not recommended. Instead, generate a real application based on this template and modify this application. This is easier because a real application can be run, and you can see how your modifications affect it. Follow these instructions:
-
Generate an application based on the template in the
testing/sandboxfolder. -
Modify the application as required.
-
Run a script that updates templates for all frameworks:
pnpm run update-template
... or a script that updates the template for an individual framework:
pnpm run update-template -p angular pnpm run update-template -p react-ts pnpm run update-template -p vue-v3