Skip to content

Commit 884aa5d

Browse files
committed
WIP factory-with-step-method fixture
1 parent 8cca401 commit 884aa5d

File tree

4 files changed

+35
-0
lines changed

4 files changed

+35
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import fs from 'fs/promises';
2+
3+
const myFactory = () => ({
4+
myStep: async () => {
5+
'use step';
6+
await fs.mkdir('test');
7+
},
8+
});
9+
10+
export default myFactory;
11+
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import fs from 'fs/promises';
2+
const myFactory = ()=>({
3+
myStep: async ()=>{
4+
'use step';
5+
await fs.mkdir('test');
6+
}
7+
});
8+
export default myFactory;
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import fs from 'fs/promises';
2+
const myFactory = ()=>({
3+
myStep: async ()=>{
4+
'use step';
5+
await fs.mkdir('test');
6+
}
7+
});
8+
export default myFactory;
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import fs from 'fs/promises';
2+
const myFactory = ()=>({
3+
myStep: async ()=>{
4+
'use step';
5+
await fs.mkdir('test');
6+
}
7+
});
8+
export default myFactory;

0 commit comments

Comments
 (0)