Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

running unit tests deletes root level greenwood.config.js #67

Closed
1 of 5 tasks
thescientist13 opened this issue May 1, 2019 · 0 comments
Closed
1 of 5 tasks

running unit tests deletes root level greenwood.config.js #67

thescientist13 opened this issue May 1, 2019 · 0 comments
Assignees
Labels
bug Something isn't working P0 Critical issue that should get addressed ASAP v0.2.0
Projects
Milestone

Comments

@thescientist13
Copy link
Member

Type of Change

  • New Feature Request
  • Documentation / Website
  • Improvement / Suggestion
  • Bug
  • Other (please clarify below)

Summary

Running tests is cleaning root level files ...

Create an empty greenwood.config.js, e.g.

module.exports = {};
$ git status
On branch bug/issue-66-config-error-handling
Untracked files:
  (use "git add <file>..." to include in what will be committed)

	greenwood.config.js

nothing added to commit but untracked files present (use "git add" to track)
Owens-MBP-2:greenwood owenbuckley$ yarn test
yarn run v1.12.3
$ yarn clean && mocha --timeout 15000
$ rimraf ./.greenwood && rimraf ./public


  building greenwood with default context (no user workspace)
    ✓ should create a public directory
    public directory output
      ✓ should output a single index.html file (home page)
      ✓ should output one JS bundle file
      ✓ should create a default hello page directory
      default generated index page in public directory
        ✓ should output an index.html file within the root public directory
        ✓ should have the expected heading text within the index page in the public directory
        ✓ should have the expected paragraph text within the index page in the public directory
      default generated hello page directory
        ✓ should output an index.html file within the default hello page directory
        ✓ should have the expected heading text within the hello example page in the hello directory
        ✓ should have the expected paragraph text within the hello example page in the hello directory

  building greenwood with a user workspace w/custom nested pages directories
    ✓ should output one JS bundle
    ✓ should contain a nested blog page directory
    nested generated blog page directory
      ✓ should contain a nested blog page with an index html file
      ✓ should have the expected heading text within the blog page in the blog directory
      ✓ should have the expected paragraph text within the blog page in the blog directory
    a custom front-matter override page directory
      ✓ should contain a customfm folder with an index html file
      ✓ should have the expected heading text within the customfm page in the customfm directory
      ✓ should have the expected paragraph text within the customfm page in the customfm directory
      ✓ should have the expected blog-template's blog-content class

  building greenwood with user workspace that doesn't contain app template
    ✓ should create a public directory
    ✓ should contain a nested blog page directory
    public directory output
      ✓ should output a single index.html file (home page)
      ✓ should output one JS bundle
      ✓ should create a default hello page directory
      default generated hello page directory
        ✓ should output an index.html file within the default hello page directory
        ✓ should have the expected heading text within the hello example page in the hello directory
        ✓ should have the expected paragraph text within the hello example page in the hello directory
    nested generated blog page directory
      ✓ should contain a nested blog page with an index html file
      ✓ should have the expected heading text within the blog page in the blog directory
      ✓ should have the expected paragraph text within the blog page in the blog directory

  building greenwood with user workspace that doesn't contain page template
    ✓ should create a public directory
    ✓ should contain a nested blog page directory
    public directory output
      ✓ should output a single index.html file (home page)
      ✓ should output one JS bundle
      ✓ should create a default hello page directory
      default generated hello page directory
        ✓ should output an index.html file within the default hello page directory
        ✓ should have the expected heading text within the hello example page in the hello directory
        ✓ should have the expected paragraph text within the hello example page in the hello directory
    nested generated blog page directory
      ✓ should contain a nested blog page with an index html file
      ✓ should have the expected heading text within the blog page in the blog directory
      ✓ should have the expected paragraph text within the blog page in the blog directory

  building greenwood with user provided config file
    ✓ should output one JS bundle
    ✓ should contain a nested blog page directory
    nested generated blog page directory
      ✓ should contain a nested blog page with an index html file
      ✓ should have the expected heading text within the blog page in the blog directory
      ✓ should have the expected paragraph text within the blog page in the blog directory


  46 passing (42s)

✨  Done in 44.74s.
Owens-MBP-2:greenwood owenbuckley$ git status
On branch bug/issue-66-config-error-handling
nothing to commit, working tree clean

Note: git status is clean 🐰 🎩

Details

Exposed as part of #66

@thescientist13 thescientist13 added the bug Something isn't working label May 1, 2019
@thescientist13 thescientist13 added this to TODO in 1 May 1, 2019
@thescientist13 thescientist13 added the P0 Critical issue that should get addressed ASAP label May 1, 2019
@thescientist13 thescientist13 moved this from TODO to IN REVIEW in 1 May 5, 2019
@thescientist13 thescientist13 self-assigned this May 10, 2019
@thescientist13 thescientist13 moved this from IN REVIEW to DONE in 1 May 11, 2019
@thescientist13 thescientist13 added this to the MVP milestone Nov 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working P0 Critical issue that should get addressed ASAP v0.2.0
Projects
No open projects
1
DONE
Development

No branches or pull requests

1 participant