1
0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-11-13 03:35:52 +01:00
verdaccio/test/unit/partials/config/yaml
Jian-Chen Chen (jesse) 80ade97801
feat: npm deprecation support (#1842)
* support deprecation

* test case for deprecation

* fix format

* testing for multiple packages deprecation

* update README

Co-authored-by: Juan Picado <juanpicado19@gmail.com>
2020-06-19 22:54:03 +02:00
..
api-jwt Merge branch '4.x' of github.com:verdaccio/verdaccio into 4.x 2018-08-21 08:08:48 +02:00
api.spec feat: endpoints change password on ui (#1068) 2018-11-18 18:41:05 +01:00
notify test: Increase coverage for unit test (#974) 2018-09-22 12:54:21 +02:00
profile feat: add support for profile cli command #392 (change password) (#1034) 2018-10-12 11:07:55 +02:00
security Merge branch '4.x' of github.com:verdaccio/verdaccio into 4.x 2018-08-21 08:08:48 +02:00
server Merge remote-tracking branch 'origin/master' into 4.1.x 2019-06-20 15:10:26 +02:00
api.spec.yaml feat: npm deprecation support (#1842) 2020-06-19 22:54:03 +02:00
api.web.spec.yaml chore: fix unpublish issues, fix unit test 2019-02-24 23:20:25 +01:00
default.yaml chore: fix unpublish issues, fix unit test 2019-02-24 23:20:25 +01:00
deprecated-pkgs-basic.yaml refactor: config unit test 2018-07-04 00:14:59 +02:00
pkg.access.spec.yaml feat: npm token command support (#1427) 2019-09-07 15:46:50 -07:00
pkgs-basic-no-access.yaml test: add scenarios where publish or access are missing (#1054) 2018-10-07 00:45:17 +02:00
pkgs-basic-no-proxy.yaml test: add scenarios where publish or access are missing (#1054) 2018-10-07 00:45:17 +02:00
pkgs-basic-no-publish.yaml test: add scenarios where publish or access are missing (#1054) 2018-10-07 00:45:17 +02:00
pkgs-basic.yaml refactor: config unit test 2018-07-04 00:14:59 +02:00
pkgs-custom.yaml chore: add unit test for package access normalize 2018-07-04 00:15:09 +02:00
pkgs-empty.yaml refactor: config unit test 2018-07-04 00:14:59 +02:00
pkgs-multi-group.yaml refactor: config unit test 2018-07-04 00:14:59 +02:00
pkgs-nosuper-wildcard-custom.yaml chore: add unit test for package access normalize 2018-07-04 00:15:09 +02:00
README.md chore: fix eslint warnings (#1471) 2019-09-26 18:22:14 +02:00
store.spec.yaml chore: remove ununsed prop in storage spec config file 2019-07-27 07:21:45 +02:00
token.spec.yaml chore: fix eslint warnings (#1471) 2019-09-26 18:22:14 +02:00
uplink-basic.yaml chore: more unit test for config utils 2018-07-04 07:31:51 +02:00
uplink-wrong.yaml chore: more unit test for config utils 2018-07-04 07:31:51 +02:00

Yaml Configurations

This folder host all sort of configurations for testing. We use yaml instead json configuration files for different reasons, maintenability, avoid polute with non use data and contributors can easily understand them.

The files on this folder should be small as possible, there is a custom config file for all tests (default.yaml) and the following configuration aims to override those part are need it for the test.

Contribute

  • Each topic ideally should have his own folder if many scenarios might be part of the test. eg: profile, security
    • Include different scenarios inside of the folder with enough context to indenty the use case.
  • Foder or file, should be named as the test that used them. eg: api.spec.yaml -> api.spec.ts
  • Don't use the same config file in multiple test, it increase maintenance complexity.
  • Try to include only the props are require for the test:
  • Comment the config files, don't be shy, add as much context you think is need it for future contributors.

Note: Some configurations might be not aligned with this rules, but in the future all files should be follow them for consistency.