File tree Expand file tree Collapse file tree 3 files changed +12
-4
lines changed Expand file tree Collapse file tree 3 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -3,3 +3,4 @@ node_modules/
3
3
.vscode
4
4
.eslintcache
5
5
yarn-error.log
6
+ .nyc_output
Original file line number Diff line number Diff line change 2
2
"name" : " plop-monorepo" ,
3
3
"version" : " 0.0.0" ,
4
4
"private" : true ,
5
- "workspaces" : [
6
- " packages/*"
7
- ],
5
+ "workspaces" : {
6
+ "packages" : [
7
+ " packages/*"
8
+ ],
9
+ "nohoist" : [
10
+ " **/plop-pack-fancy-comments"
11
+ ]
12
+ },
8
13
"type" : " module" ,
9
14
"scripts" : {
10
15
"bootstrap" : " lerna exec yarn install" ,
Original file line number Diff line number Diff line change @@ -5,7 +5,9 @@ import { fileURLToPath } from "node:url";
5
5
const __dirname = dirname ( fileURLToPath ( import . meta. url ) ) ;
6
6
7
7
test ( "should report a missing plopfile when not copied" , async ( ) => {
8
- const { findByError } = await renderPlop ( ) ;
8
+ // The directory above this repo. We look up towards `plopfile.js` and found one at root otherwise.
9
+ const cwd = resolve ( __dirname , '../../../..' ) ;
10
+ const { findByError } = await renderPlop ( [ ] , { cwd} ) ;
9
11
expect ( await findByError ( / \[ P L O P \] N o p l o p f i l e f o u n d / ) ) . toBeInTheConsole ( ) ;
10
12
} ) ;
11
13
You can’t perform that action at this time.
0 commit comments