use oxide

- Setup the codebase to be able to use the Rust parts based on an
  environment variable: `OXIDE=1`.
- Setup some tests that run both the non-Rust and Rust version in the
  same test.
- Sort the candidates in a consistent way, to guarantee the order for
  now (especially in tests).
- Reflect sorting related changes in tests.
- Ensure tests run in both the Rust and non-Rust version. (Some tests
  are explicitly skipped when using the Rust version since we haven't
  implemented those features yet. These include: custom prefix,
  transformers and extractors).
  - `jest`
  -`OXIDE=1 jest`
This commit is contained in:
Robin Malfait 2022-11-30 00:10:15 +01:00
parent cc92ef53a6
commit b643d399db
No known key found for this signature in database
GPG key ID: 92F53D68B9041AFE
37 changed files with 3340 additions and 4691 deletions

View file

@ -1,4 +1,4 @@
export default function (value) {
export default function negateValue(value) {
value = `${value}`
if (value === '0') {