Remove uses of require from validation tests
authorRandall Leeds <randall@apache.org>
Sun, 14 Oct 2018 23:57:10 +0000 (16:57 -0700)
committerRandall Leeds <randall@apache.org>
Sun, 14 Oct 2018 23:57:10 +0000 (16:57 -0700)
commit60dfe112a4aa6f5232eeebe04ab9aa146830049d
tree0b4b5fa366090ac50c6fc08aea064edeeaf4b0ef
parent1aa4025c5c59293a5ca663afac6c6f2fe5502dd4
Remove uses of require from validation tests

Strict .mjs does not have access to `require`. Due to a bug in `esm`, it
worked up until now. However, removing it is necessary to unblock
upgrading `esm`.

At the same time, address the fact that it is not ideal to assume that
the node modules directory is relative to the current working directory.
Instead, rely on `resolve` to do a recursive search.
package.json
test/data-model.mjs
yarn.lock