Skip to content

Commit 84485d3

Browse files
fix test for react
1 parent 009bda6 commit 84485d3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/devextreme-cli/testing/env.react.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const classify = require('../src/utility/string').classify;
1010
const appName = 'my-app';
1111
const sandboxPath = path.join(process.cwd(), './testing/sandbox/react');
1212
const appPath = path.join(sandboxPath, appName);
13-
const appLayoutPath = path.join(sandboxPath, appName, 'src/Content.js');
13+
const appLayoutPath = path.join(sandboxPath, appName, 'src/Content.jsx');
1414

1515
exports.engine = 'react';
1616
exports.appPath = appPath;
@@ -24,7 +24,7 @@ exports.createApp = async(toolingVersion) => {
2424

2525
const additionalArguments = toolingVersion && [`--${toolingVersionOptionName} ${toolingVersion}`] || [];
2626
await runCommand('node', [
27-
path.join(process.cwd(), './index.js'),
27+
path.join(process.cwd(), './index.jsx'),
2828
'new',
2929
'react-app',
3030
'--layout=side-nav-outer-toolbar',
@@ -36,7 +36,7 @@ exports.createApp = async(toolingVersion) => {
3636
});
3737

3838
await runCommand('node', [
39-
path.join(process.cwd(), './index.js'),
39+
path.join(process.cwd(), './index.jsx'),
4040
'add',
4141
'view',
4242
'new-page'

0 commit comments

Comments
 (0)