Ghost/ghost/errors
Katharina Irrgang b4f398ec6a Tidy up unit test files (#9340)
refs #9178

- first iteration of tidying up the unit tests
- this is useful in the current stage, because if i move files in the server folder, i need a clean folder/file structure to detect which tests needs to move
- this is a simple cleanup to reflect the current server folder structure
2020-03-25 10:24:33 +00:00
..
lib Moved errors,logging,i18n and events to lib/common 2020-03-25 10:24:33 +00:00
test Tidy up unit test files (#9340) 2020-03-25 10:24:33 +00:00
.eslintrc.js Prepared new errors package 2020-03-25 10:24:33 +00:00
index.js Prepared new errors package 2020-03-25 10:24:33 +00:00
LICENSE Prepared new errors package 2020-03-25 10:24:33 +00:00
package.json Prepared new errors package 2020-03-25 10:24:33 +00:00
README.md Prepared new errors package 2020-03-25 10:24:33 +00:00

Errors

Install

npm install @tryghost/errors --save

or

yarn add @tryghost/errors

Usage

Develop

This is a mono repository, managed with lerna.

Follow the instructions for the top-level repo.

  1. git clone this repo & cd into it as usual
  2. Run yarn to install top-level dependencies.

Run

  • yarn dev

Test

  • yarn lint run just eslint
  • yarn test run lint and tests

Copyright & License

Copyright (c) 2020 Ghost Foundation - Released under the MIT license.