Closed tobiasqueck closed 3 months ago
When someone looks at this, please also consider converting
it("should be able to create the project", function () {
return helpers.run(path.join(__dirname, "../generators/app")).withPrompts(oPrompt);
});
into something like
let context;
before(async () => {
context = await helpers.run(path.join(__dirname, "../generators/app")).withPrompts(oPrompt)
});
after(() => {
context.restore();
});
so that the tests are isolated.
Not relevant any longer with new version: PR https://github.com/ui5-community/generator-ui5-project/pull/75
Easy-Ui5 version:
I am not running a released
easy-ui5
version but run the tests in the repo.OS/version:
MacOs/12.3.1
Browser/version (+device/version):
n/a
Other versions
yarn: 1.22.17 node: 14.18.1
Steps to reproduce the problem:
yarn
yarn test test/basic.js --grep 'JS-Application Router @ Cloud Foundry'
What is the expected result?
A successful test run.
What happens instead?
should pass the OPA tests
failsAny other information? (attach screenshot if possible)
I also tried it with
npm
instead ofyarn
but ran into the same issue.