From f3b7e4128b99582119580158b700f91fa891ccf9 Mon Sep 17 00:00:00 2001 From: Marcelo Shima Date: Thu, 26 Oct 2023 11:09:43 -0300 Subject: [PATCH] Update README.md --- README.md | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/README.md b/README.md index de82cd4..e7b5a69 100644 --- a/README.md +++ b/README.md @@ -52,11 +52,7 @@ describe('generator test', () => { [.withYoRcConfig('generator-foo.bar', { : {} })] // same as above [.commitFiles()] // commit mem-fs files to disk [.onGenerator(gen => {})] // do something with the generator - [.onEnvironment(env => {})] // do something with the environment - [.build(runContext => { // instantiates Environment/Generator - [runContext.env...] // does something with the environment - [runContext.generator...] // does something with the generator - })]; + [.onEnvironment(env => {})]; // do something with the environment [await result.create('another-generator').run();] // instantiates a new RunContext at the same directory );