Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ const { extractToolingVersion, toolingVersionOptionName } = require('../utility/
const schematicsVersion = latestVersions['devextreme-schematics'] || 'latest';

const minNgCliVersion = new semver('17.0.0');
const ngCliWithZoneless = new semver('20.0.0');

async function runSchematicCommand(schematicCommand, options, evaluatingOptions) {
const collectionName = 'devextreme-schematics';
Expand Down Expand Up @@ -76,6 +77,7 @@ const install = async(options) => {

const create = async(appName, options) => {
const layout = await getLayoutInfo(options.layout);
const currentNgVersion = ngVersion.getNgCliVersion().version;

const commandArguments = [
'new',
Expand All @@ -88,6 +90,10 @@ const create = async(appName, options) => {
'--ssr=false'
];

if(ngCliWithZoneless.compare(currentNgVersion) <= 0) {
commandArguments.push('--zoneless=false');
}

await runNgCommand(commandArguments, options);

const appPath = path.join(process.cwd(), appName);
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 5 additions & 1 deletion packages/devextreme-cli/testing/app-template.test.shared.js
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,11 @@ module.exports = (env) => {
await page.waitForTimeout(3000);
const image = await takeScreenshot();

compareSnapshot(image, 'create-account');
compareSnapshot(image, 'create-account', {
failureThreshold: 1,
failureThresholdType: 'pixel',
threshold: 0.1
});
});

it('Reset password page', async() => {
Expand Down
Loading