Koha/xt
Mason James 8f0dc36f0d
Bug 37490: Add a test to detect when yarn.lock is not updated
to test...

1/ set koha repo to state where yarn.lock is not updated

    $ git reset --hard 67db70d4

2/ run test, observe FAIL

    $ prove ./xt/verify-yarnlock.t
    ./xt/verify-yarnlock.t .. error Your lockfile needs to be updated, but yarn was run with `--frozen-lockfile`.
    ./xt/verify-yarnlock.t .. 1/1
    #   Failed test 'verify yarn.lock file is updated correctly'
    ...
    Result: FAIL

3/ set koha repo to state where yarn.lock is updated

    $ yarn install

4/ note yarn.lock is now updated

    $ git status
    ...
    modified:   yarn.lock

5/ run test, observe SUCCESS

    $ prove -v ./xt/verify-yarnlock.t
    ./xt/verify-yarnlock.t ..
    ok 1 - verify yarn.lock file is updated correctly
    All tests successful.
    Files=1, Tests=1,  1 wallclock secs ( 0.02 usr  0.01 sys +  1.16 cusr  0.27 csys =  1.46 CPU)
    Result: PASS

Signed-off-by: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
2024-09-02 12:13:47 +02:00
..
author
api.t Bug 37018: Add 400 response definition to all routes 2024-08-01 17:26:44 +02:00
check_makefile.t Bug 34911: Test files from HEAD instead of 'master' 2023-10-04 09:15:35 -04:00
find-license-problems.t
find-misplaced-executables.t
find-missing-auth_checks.t Bug 24879: Exclude koha_perl_deps.pl 2024-04-03 17:05:51 +02:00
find-missing-csrf.t Bug 34478: Add test to catch missing op in POST forms 2024-03-01 10:58:14 +01:00
find-missing-filters.t Bug 33743: Make xt/find-missing-filters.t and xt/single_quotes.t check directories in git index only 2023-05-16 12:56:41 +02:00
find-missing-op-in-forms.t Bug 37309: Adjust test 2024-08-26 17:39:45 +02:00
js_tidy.t Bug 36374: flag JS files to keep tidy 2024-04-29 15:19:33 +02:00
single_quotes.t Bug 33743: Make xt/find-missing-filters.t and xt/single_quotes.t check directories in git index only 2023-05-16 12:56:41 +02:00
tt_valid.t
verify-debian-docbook.t
verify-yarnlock.t Bug 37490: Add a test to detect when yarn.lock is not updated 2024-09-02 12:13:47 +02:00
verify_bib1.att.t Bug 32741: Regression tests 2023-02-02 11:59:26 -03:00
vue_tidy.t Bug 33625: Adjust test to deal with cypress tests 2023-05-17 10:24:59 -03:00
yaml_valid.pl
yaml_valid.t