-
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add external-seed project to test default parser
- Loading branch information
1 parent
ce9ece7
commit e24a637
Showing
5 changed files
with
103 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
## 0 | ||
|
||
### --seed-- | ||
|
||
#### --cmd-- | ||
|
||
```bash | ||
rm -f external-seed/index.js | ||
rm -f external-seed/log | ||
``` | ||
|
||
## 1 | ||
|
||
### --seed-- | ||
|
||
#### --"external-seed/index.js"-- | ||
|
||
```js | ||
const a = 'seeding works'; | ||
console.log(a); | ||
``` | ||
|
||
#### --cmd-- | ||
|
||
```bash | ||
touch external-seed/log | ||
node external-seed/index.js > external-seed/log | ||
``` | ||
|
||
## --fcc-end-- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# External Seed | ||
|
||
A project to test the default parser `external seed` feature. | ||
|
||
## 0 | ||
|
||
### --description-- | ||
|
||
The seed for this lesson deletes any `index.js` and `log` files within the `external-seed/` directory. | ||
|
||
### --tests-- | ||
|
||
This test should pass, if the seed worked | ||
|
||
```js | ||
const { readdir } = await import('fs/promises'); | ||
const dir = await readdir(join(ROOT, project.dashedName)); | ||
assert.equal( | ||
dir.length, | ||
1, | ||
`"${project.dashedName}" is expected to only have the .gitkeep file.` | ||
); | ||
``` | ||
|
||
## 1 | ||
|
||
### --description-- | ||
|
||
There should be a `index.js` file that was created and run when the lesson loaded. | ||
|
||
### --tests-- | ||
|
||
The `index.js` file should be seeded for you. | ||
|
||
```js | ||
const { access, constants } = await import('fs/promises'); | ||
await access(join(ROOT, project.dashedName, 'index.js'), constants.F_OK); | ||
``` | ||
|
||
The `index.js` file should be run. | ||
|
||
```js | ||
const { access, constants } = await import('fs/promises'); | ||
await access(join(ROOT, project.dashedName, 'log'), constants.F_OK); | ||
``` | ||
|
||
## --fcc-end-- |
Empty file.