Skip to content

Commit

Permalink
Merge pull request #5 from betrueagency/bug/4-error-when-trying-to-bu…
Browse files Browse the repository at this point in the history
…ild-app-could-be-related-to-redux-versions

Fix build issue #4
  • Loading branch information
alizarion committed Jul 22, 2022
2 parents e4d49c5 + 4216c29 commit e82e918
Show file tree
Hide file tree
Showing 19 changed files with 19,481 additions and 41,152 deletions.
7 changes: 2 additions & 5 deletions e2e/react-elementor-e2e/tests/react-elementor.spec.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import {
checkFilesExist,
ensureNxProject, readFile,
readJson,
runNxCommandAsync,
uniq,
} from '@nrwl/nx-plugin/testing';
Expand All @@ -17,16 +16,15 @@ describe('react-elementor:plugin e2e', () => {
`generate @betrue/react-elementor:plugin ${plugin}`
);

const result = await runNxCommandAsync(`build ${plugin}`);
await runNxCommandAsync(`pkg ${plugin}`);
expect(() =>
checkFilesExist(
`apps/${plugin}/src/index.html`,
`dist/apps/${plugin}/main.js`)
`dist/elementor/${plugin}/dist/main.js`)
).not.toThrow();
}, 120000);



/**describe('--tags', () => {
it('should add tags to nx.json', async () => {
const plugin = uniq('react-elementor');
Expand Down Expand Up @@ -59,7 +57,6 @@ describe('react-elementor:plugin e2e', () => {
`plugin ${plugin} `
);
const file = readFile(`dist/elementor/${plugin}/class-widgets.php`);
console.log(file)
expect(file.includes('noVersion')).toEqual(true);
}, 120000);
});
Expand Down
6 changes: 0 additions & 6 deletions jest.config.js

This file was deleted.

5 changes: 5 additions & 0 deletions jest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
const { getJestProjects } = require('@nrwl/jest');

export default {
projects: [...getJestProjects(), '<rootDir>/e2e/react-elementor-e2e'],
};
2 changes: 1 addition & 1 deletion jest.preset.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
const nxPreset = require('@nrwl/jest/preset');
const nxPreset = require('@nrwl/jest/preset').default;

module.exports = { ...nxPreset };
22 changes: 11 additions & 11 deletions nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,15 @@
},
"tasksRunnerOptions": {
"default": {
"runner": "@nrwl/workspace/tasks-runners/default",
"runner": "nx/tasks-runners/default",
"options": {
"cacheableOperations": ["build", "lint", "test", "e2e"]
"cacheableOperations": [
"build",
"lint",
"test",
"e2e"
],
"parallel": 1
}
}
},
Expand All @@ -26,17 +32,11 @@
}
]
},
"projects": {
"react-elementor": {
"tags": []
},
"react-elementor-e2e": {
"tags": [],
"implicitDependencies": ["react-elementor"]
}
},
"workspaceLayout": {
"appsDir": "e2e",
"libsDir": "packages"
},
"cli": {
"defaultCollection": "@nrwl/workspace"
}
}
Loading

0 comments on commit e82e918

Please sign in to comment.