Skip to content

Commit bc7b9c4

Browse files
committed
Set up jest scaffold for tasks
1 parent 7064f2d commit bc7b9c4

2 files changed

Lines changed: 40 additions & 0 deletions

File tree

.moon/tasks/node.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,24 @@ fileGroups:
88
default:
99
- '**/*'
1010
production: [ ]
11+
12+
tasks:
13+
# This task can be used to make a task depend on the source files in the workspace
14+
source:
15+
command: 'true'
16+
inputs:
17+
- '@group(src)'
18+
options:
19+
internal: true
20+
runFromWorkspaceRoot: true
21+
22+
# This task can be used to make a task depend on the full upstream source files of a select project
23+
source-upstream:
24+
command: 'true'
25+
inputs:
26+
- '@group(src)'
27+
deps:
28+
- '^:source-upstream'
29+
options:
30+
internal: true
31+
runFromWorkspaceRoot: true
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
$schema: https://moonrepo.dev/schemas/tasks.json
2+
3+
inheritedBy:
4+
tags:
5+
- jest-unit-tests
6+
7+
tasks:
8+
jest:
9+
command: node
10+
args:
11+
- scripts/jest.js
12+
- '--runInBand'
13+
- '--passWithNoTests'
14+
deps:
15+
- '~:source'
16+
- '~:source-upstream'
17+
options:
18+
mergeArgs: append
19+
runFromWorkspaceRoot: true

0 commit comments

Comments
 (0)