$ lerna run docker:build
$ lerna run docker:run
To run tests for all target frameworks, use the following command:
$ npm run test
This 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
npm run create-template
npm run create-template -- -- -e angular
npm run create-template -- -- -e react
npm run create-template -- -- -e react-ts
npm run create-template -- -- -e vue-v3
npm run lint-template
npm run lint-template -- -- -e angular
npm run lint-template -- -- -e react
npm run lint-template -- -- -e react-ts
npm run lint-template -- -- -e vue-v3
npm run test-template
npm run test-template -- -- -e angular
npm run test-template -- -- -e react
npm run test-template -- -- -e react-ts
npm run test-template -- -- -e vue-v3
npm run test-dev
npm run test -- -- -t angular
npm run test -- -- -t react
npm run test -- -- -t react-ts
npm run test -- -- -t vue-v3
To 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/sandbox
folder. -
Modify the application as required.
-
Run a script that updates templates for all frameworks:
npm run update-template
... or a script that updates the template for an individual framework:
npm run update-template -- -p angular npm run update-template -- -p react-ts npm run update-template -- -p vue-v3