Skip to content

Commit

Permalink
bump yeoman-test to 8.0.0-rc.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mshima committed May 26, 2023
1 parent e6960a9 commit daa52af
Show file tree
Hide file tree
Showing 3 changed files with 213 additions and 73 deletions.
276 changes: 207 additions & 69 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
"xo": "^0.54.2",
"yeoman-assert": "^3.1.1",
"yeoman-environment": "^3.18.4",
"yeoman-test": "^8.0.0-beta.6"
"yeoman-test": "^8.0.0-rc.0"
},
"peerDependencies": {
"@yeoman/types": "^1.0.1",
Expand Down
8 changes: 5 additions & 3 deletions test/base.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ describe('Base', () => {
this.fs.write(filepath, 'some new content');
};

const env = createEnv([], { 'skip-install': true }, new TestAdapter(action));
const env = createEnv([], { 'skip-install': true }, new TestAdapter({ mockedAnswers: action }));
const testGen = new TestGenerator([], {
resolved: 'generator/app/index.js',
namespace: 'dummy',
Expand Down Expand Up @@ -1705,8 +1705,10 @@ describe('Base', () => {
const input2Prompt = { type: 'input', name: 'prompt2' };
beforeEach(function () {
dummy.env.adapter = new TestAdapter({
prompt1: 'prompt1NewValue',
prompt2: 'prompt2NewValue',
mockedAnswers: {
prompt1: 'prompt1NewValue',
prompt2: 'prompt2NewValue',
},
});
promptSpy = sinonSpy(dummy.env.adapter, 'prompt');
dummy.options.askAnswered = true;
Expand Down

0 comments on commit daa52af

Please sign in to comment.