Running ‘testthat.R’
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(jsonvalidate)
  > 
  > test_check("jsonvalidate")
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-read.R:2:3): can't read empty input ─────────────────────────────
  <std::invalid_argument/C++Error/error/condition>
  Error in `context_eval(join(src), private$context, serialize)`: SyntaxError: Unexpected token const
  Backtrace:
      █
   1. └─jsonvalidate:::jsonvalidate_js() test-read.R:2:2
   2.   └─ct$source(system.file("bundle.js", package = "jsonvalidate"))
   3.     └─V8:::evaluate_js(readLines(file, encoding = "UTF-8", warn = FALSE))
   4.       ├─V8:::get_str_output(...)
   5.       └─V8:::context_eval(join(src), private$context, serialize)
  ── Error (test-read.R:11:3): must read character input ─────────────────────────
  <std::invalid_argument/C++Error/error/condition>
  Error in `context_eval(join(src), private$context, serialize)`: SyntaxError: Unexpected token const
  Backtrace:
      █
   1. └─jsonvalidate:::jsonvalidate_js() test-read.R:11:2
   2.   └─ct$source(system.file("bundle.js", package = "jsonvalidate"))
   3.     └─V8:::evaluate_js(readLines(file, encoding = "UTF-8", warn = FALSE))
   4.       ├─V8:::get_str_output(...)
   5.       └─V8:::context_eval(join(src), private$context, serialize)
  ── Error (test-read.R:18:3): sensible error on missing files ───────────────────
  <std::invalid_argument/C++Error/error/condition>
  Error in `context_eval(join(src), private$context, serialize)`: SyntaxError: Unexpected token const
  Backtrace:
      █
   1. └─jsonvalidate:::jsonvalidate_js() test-read.R:18:2
   2.   └─ct$source(system.file("bundle.js", package = "jsonvalidate"))
   3.     └─V8:::evaluate_js(readLines(file, encoding = "UTF-8", warn = FALSE))
   4.       ├─V8:::get_str_output(...)
   5.       └─V8:::context_eval(join(src), private$context, serialize)
  ── Error (test-read.R:48:3): Read recursive schema ─────────────────────────────
  <std::invalid_argument/C++Error/error/condition>
  Error in `context_eval(join(src), private$context, serialize)`: SyntaxError: Unexpected token const
  Backtrace:
      █
   1. └─jsonvalidate:::jsonvalidate_js() test-read.R:48:2
   2.   └─ct$source(system.file("bundle.js", package = "jsonvalidate"))
   3.     └─V8:::evaluate_js(readLines(file, encoding = "UTF-8", warn = FALSE))
   4.       ├─V8:::get_str_output(...)
   5.       └─V8:::context_eval(join(src), private$context, serialize)
  ── Error (test-read.R:73:3): can't read external schemas ───────────────────────
  <std::invalid_argument/C++Error/error/condition>
  Error in `context_eval(join(src), private$context, serialize)`: SyntaxError: Unexpected token const
  Backtrace:
      █
   1. └─jsonvalidate:::jsonvalidate_js() test-read.R:73:2
   2.   └─ct$source(system.file("bundle.js", package = "jsonvalidate"))
   3.     └─V8:::evaluate_js(readLines(file, encoding = "UTF-8", warn = FALSE))
   4.       ├─V8:::get_str_output(...)
   5.       └─V8:::context_eval(join(src), private$context, serialize)
  ── Error (test-read.R:84:3): Conflicting schema versions ───────────────────────
  <std::invalid_argument/C++Error/error/condition>
  Error in `context_eval(join(src), private$context, serialize)`: SyntaxError: Unexpected token const
  Backtrace:
      █
   1. └─jsonvalidate:::jsonvalidate_js() test-read.R:84:2
   2.   └─ct$source(system.file("bundle.js", package = "jsonvalidate"))
   3.     └─V8:::evaluate_js(readLines(file, encoding = "UTF-8", warn = FALSE))
   4.       ├─V8:::get_str_output(...)
   5.       └─V8:::context_eval(join(src), private$context, serialize)
  ── Error (test-read.R:112:3): Sensible reporting on syntax error ───────────────
  <std::invalid_argument/C++Error/error/condition>
  Error in `context_eval(join(src), private$context, serialize)`: SyntaxError: Unexpected token const
  Backtrace:
      █
   1. └─jsonvalidate:::jsonvalidate_js() test-read.R:112:2
   2.   └─ct$source(system.file("bundle.js", package = "jsonvalidate"))
   3.     └─V8:::evaluate_js(readLines(file, encoding = "UTF-8", warn = FALSE))
   4.       ├─V8:::get_str_output(...)
   5.       └─V8:::context_eval(join(src), private$context, serialize)
  ── Error (test-read.R:161:3): can reference subsets of other schema ────────────
  <std::invalid_argument/C++Error/error/condition>
  Error in `context_eval(join(src), private$context, serialize)`: SyntaxError: Unexpected token const
  Backtrace:
      █
   1. └─jsonvalidate:::jsonvalidate_js() test-read.R:161:2
   2.   └─ct$source(system.file("bundle.js", package = "jsonvalidate"))
   3.     └─V8:::evaluate_js(readLines(file, encoding = "UTF-8", warn = FALSE))
   4.       ├─V8:::get_str_output(...)
   5.       └─V8:::context_eval(join(src), private$context, serialize)
  ── Error (test-validator.R:15:3): is-my-json-valid ─────────────────────────────
  <std::invalid_argument/C++Error/error/condition>
  Error in `context_eval(join(src), private$context, serialize)`: SyntaxError: Unexpected token const
  Backtrace:
      █
   1. └─jsonvalidate::json_validator(str, engine = "imjv") test-validator.R:15:2
   2.   └─jsonvalidate:::jsonvalidate_js()
   3.     └─ct$source(system.file("bundle.js", package = "jsonvalidate"))
   4.       └─V8:::evaluate_js(readLines(file, encoding = "UTF-8", warn = FALSE))
   5.         ├─V8:::get_str_output(...)
   6.         └─V8:::context_eval(join(src), private$context, serialize)
  ── Error (test-validator.R:46:3): simple case works ────────────────────────────
  <std::invalid_argument/C++Error/error/condition>
  Error in `context_eval(join(src), private$context, serialize)`: SyntaxError: Unexpected token const
  Backtrace:
      █
   1. └─jsonvalidate::json_validator(str, "ajv") test-validator.R:46:2
   2.   └─jsonvalidate:::jsonvalidate_js()
   3.     └─ct$source(system.file("bundle.js", package = "jsonvalidate"))
   4.       └─V8:::evaluate_js(readLines(file, encoding = "UTF-8", warn = FALSE))
   5.         ├─V8:::get_str_output(...)
   6.         └─V8:::context_eval(join(src), private$context, serialize)
  ── Error (test-validator.R:75:3): verbose output ───────────────────────────────
  <std::invalid_argument/C++Error/error/condition>
  Error in `context_eval(join(src), private$context, serialize)`: SyntaxError: Unexpected token const
  Backtrace:
      █
   1. └─jsonvalidate::json_validator(str, "ajv") test-validator.R:75:2
   2.   └─jsonvalidate:::jsonvalidate_js()
   3.     └─ct$source(system.file("bundle.js", package = "jsonvalidate"))
   4.       └─V8:::evaluate_js(readLines(file, encoding = "UTF-8", warn = FALSE))
   5.         ├─V8:::get_str_output(...)
   6.         └─V8:::context_eval(join(src), private$context, serialize)
  ── Error (test-validator.R:93:3): const keyword is supported in draft-06, not draft-04 ──
  <std::invalid_argument/C++Error/error/condition>
  Error in `context_eval(join(src), private$context, serialize)`: SyntaxError: Unexpected token const
  Backtrace:
       █
    1. ├─testthat::expect_true(json_validate("{'a': 'foo'}", schema, engine = "ajv")) test-validator.R:93:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. └─jsonvalidate::json_validate("{'a': 'foo'}", schema, engine = "ajv")
    5.   └─jsonvalidate::json_validator(...)
    6.     └─jsonvalidate:::jsonvalidate_js()
    7.       └─ct$source(system.file("bundle.js", package = "jsonvalidate"))
    8.         └─V8:::evaluate_js(readLines(file, encoding = "UTF-8", warn = FALSE))
    9.           ├─V8:::get_str_output(...)
   10.           └─V8:::context_eval(join(src), private$context, serialize)
  ── Error (test-validator.R:120:3): if/then/else keywords are supported in draft-07, not draft-04 ──
  <std::invalid_argument/C++Error/error/condition>
  Error in `context_eval(join(src), private$context, serialize)`: SyntaxError: Unexpected token const
  Backtrace:
       █
    1. ├─testthat::expect_true(...) test-validator.R:120:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. └─jsonvalidate::json_validate("{'a': 5, 'b': 5}", schema, engine = "ajv")
    5.   └─jsonvalidate::json_validator(...)
    6.     └─jsonvalidate:::jsonvalidate_js()
    7.       └─ct$source(system.file("bundle.js", package = "jsonvalidate"))
    8.         └─V8:::evaluate_js(readLines(file, encoding = "UTF-8", warn = FALSE))
    9.           ├─V8:::get_str_output(...)
   10.           └─V8:::context_eval(join(src), private$context, serialize)
  ── Error (test-validator.R:155:3): subschema validation works ──────────────────
  <std::invalid_argument/C++Error/error/condition>
  Error in `context_eval(join(src), private$context, serialize)`: SyntaxError: Unexpected token const
  Backtrace:
      █
   1. └─jsonvalidate::json_validator(schema, "ajv", "#/definitions/Goodbye") test-validator.R:155:2
   2.   └─jsonvalidate:::jsonvalidate_js()
   3.     └─ct$source(system.file("bundle.js", package = "jsonvalidate"))
   4.       └─V8:::evaluate_js(readLines(file, encoding = "UTF-8", warn = FALSE))
   5.         ├─V8:::get_str_output(...)
   6.         └─V8:::context_eval(join(src), private$context, serialize)
  ── Error (test-validator.R:168:3): can't use subschema reference with imjv ─────
  <std::invalid_argument/C++Error/error/condition>
  Error in `context_eval(join(src), private$context, serialize)`: SyntaxError: Unexpected token const
  Backtrace:
       █
    1. ├─testthat::expect_error(...) test-validator.R:168:2
    2. │ └─testthat:::expect_condition_matching(...)
    3. │   └─testthat:::quasi_capture(...)
    4. │     ├─testthat:::.capture(...)
    5. │     │ └─base::withCallingHandlers(...)
    6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    7. └─jsonvalidate::json_validator("{}", engine = "imjv", reference = "definitions/sub")
    8.   └─jsonvalidate:::jsonvalidate_js()
    9.     └─ct$source(system.file("bundle.js", package = "jsonvalidate"))
   10.       └─V8:::evaluate_js(readLines(file, encoding = "UTF-8", warn = FALSE))
   11.         ├─V8:::get_str_output(...)
   12.         └─V8:::context_eval(join(src), private$context, serialize)
  ── Error (test-validator.R:195:3): can't use nested schemas with imjv ──────────
  <std::invalid_argument/C++Error/error/condition>
  Error in `context_eval(join(src), private$context, serialize)`: SyntaxError: Unexpected token const
  Backtrace:
       █
    1. ├─withr::with_options(...) test-validator.R:195:2
    2. │ └─base::force(code)
    3. ├─testthat::expect_message(...)
    4. │ └─testthat:::expect_condition_matching(...)
    5. │   └─testthat:::quasi_capture(...)
    6. │     ├─testthat:::.capture(...)
    7. │     │ └─base::withCallingHandlers(...)
    8. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    9. └─jsonvalidate::json_validator(...)
   10.   └─jsonvalidate:::jsonvalidate_js()
   11.     └─ct$source(system.file("bundle.js", package = "jsonvalidate"))
   12.       └─V8:::evaluate_js(readLines(file, encoding = "UTF-8", warn = FALSE))
   13.         ├─V8:::get_str_output(...)
   14.         └─V8:::context_eval(join(src), private$context, serialize)
  ── Error (test-validator.R:207:3): can't use invalid engines ───────────────────
  <std::invalid_argument/C++Error/error/condition>
  Error in `context_eval(join(src), private$context, serialize)`: SyntaxError: Unexpected token const
  Backtrace:
       █
    1. ├─testthat::expect_error(...) test-validator.R:207:2
    2. │ └─testthat:::expect_condition_matching(...)
    3. │   └─testthat:::quasi_capture(...)
    4. │     ├─testthat:::.capture(...)
    5. │     │ └─base::withCallingHandlers(...)
    6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    7. └─jsonvalidate::json_validator("{}", engine = "magic")
    8.   └─jsonvalidate:::jsonvalidate_js()
    9.     └─ct$source(system.file("bundle.js", package = "jsonvalidate"))
   10.       └─V8:::evaluate_js(readLines(file, encoding = "UTF-8", warn = FALSE))
   11.         ├─V8:::get_str_output(...)
   12.         └─V8:::context_eval(join(src), private$context, serialize)
  ── Error (test-validator.R:223:3): can't use new schema versions with imjv ─────
  <std::invalid_argument/C++Error/error/condition>
  Error in `context_eval(join(src), private$context, serialize)`: SyntaxError: Unexpected token const
  Backtrace:
      █
   1. └─jsonvalidate:::jsonvalidate_js() test-validator.R:223:2
   2.   └─ct$source(system.file("bundle.js", package = "jsonvalidate"))
   3.     └─V8:::evaluate_js(readLines(file, encoding = "UTF-8", warn = FALSE))
   4.       ├─V8:::get_str_output(...)
   5.       └─V8:::context_eval(join(src), private$context, serialize)
  ── Error (test-validator.R:257:3): Simple file references work ─────────────────
  <std::invalid_argument/C++Error/error/condition>
  Error in `context_eval(join(src), private$context, serialize)`: SyntaxError: Unexpected token const
  Backtrace:
      █
   1. └─jsonvalidate::json_validator(...) test-validator.R:257:2
   2.   └─jsonvalidate:::jsonvalidate_js()
   3.     └─ct$source(system.file("bundle.js", package = "jsonvalidate"))
   4.       └─V8:::evaluate_js(readLines(file, encoding = "UTF-8", warn = FALSE))
   5.         ├─V8:::get_str_output(...)
   6.         └─V8:::context_eval(join(src), private$context, serialize)
  ── Error (test-validator.R:285:3): Referenced schemas have their ids replaced ──
  <std::invalid_argument/C++Error/error/condition>
  Error in `context_eval(join(src), private$context, serialize)`: SyntaxError: Unexpected token const
  Backtrace:
       █
    1. ├─testthat::expect_silent(...) test-validator.R:285:2
    2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise)
    3. │   ├─testthat:::.capture(...)
    4. │   │ ├─withr::with_output_sink(...)
    5. │   │ │ └─base::force(code)
    6. │   │ ├─base::withCallingHandlers(...)
    7. │   │ └─base::withVisible(code)
    8. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    9. └─jsonvalidate::json_validator(...)
   10.   └─jsonvalidate:::jsonvalidate_js()
   11.     └─ct$source(system.file("bundle.js", package = "jsonvalidate"))
   12.       └─V8:::evaluate_js(readLines(file, encoding = "UTF-8", warn = FALSE))
   13.         ├─V8:::get_str_output(...)
   14.         └─V8:::context_eval(join(src), private$context, serialize)
  ── Error (test-validator.R:313:3): Can validate fraction of a json object ──────
  <std::invalid_argument/C++Error/error/condition>
  Error in `context_eval(join(src), private$context, serialize)`: SyntaxError: Unexpected token const
  Backtrace:
       █
    1. ├─testthat::expect_false(json_validate(data, schema, engine = "ajv")) test-validator.R:313:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. └─jsonvalidate::json_validate(data, schema, engine = "ajv")
    5.   └─jsonvalidate::json_validator(...)
    6.     └─jsonvalidate:::jsonvalidate_js()
    7.       └─ct$source(system.file("bundle.js", package = "jsonvalidate"))
    8.         └─V8:::evaluate_js(readLines(file, encoding = "UTF-8", warn = FALSE))
    9.           ├─V8:::get_str_output(...)
   10.           └─V8:::context_eval(join(src), private$context, serialize)
  ── Error (test-validator.R:377:3): stray null values in a schema are ok ────────
  <std::invalid_argument/C++Error/error/condition>
  Error in `context_eval(join(src), private$context, serialize)`: SyntaxError: Unexpected token const
  Backtrace:
      █
   1. └─jsonvalidate:::jsonvalidate_js() test-validator.R:377:2
   2.   └─ct$source(system.file("bundle.js", package = "jsonvalidate"))
   3.     └─V8:::evaluate_js(readLines(file, encoding = "UTF-8", warn = FALSE))
   4.       ├─V8:::get_str_output(...)
   5.       └─V8:::context_eval(join(src), private$context, serialize)
  ── Error (test-validator.R:407:3): Referencing definition in another file works ──
  <std::invalid_argument/C++Error/error/condition>
  Error in `context_eval(join(src), private$context, serialize)`: SyntaxError: Unexpected token const
  Backtrace:
      █
   1. └─jsonvalidate::json_validator(...) test-validator.R:407:2
   2.   └─jsonvalidate:::jsonvalidate_js()
   3.     └─ct$source(system.file("bundle.js", package = "jsonvalidate"))
   4.       └─V8:::evaluate_js(readLines(file, encoding = "UTF-8", warn = FALSE))
   5.         ├─V8:::get_str_output(...)
   6.         └─V8:::context_eval(join(src), private$context, serialize)
  ── Error (test-validator.R:436:3): schema can contain IDs ──────────────────────
  <std::invalid_argument/C++Error/error/condition>
  Error in `context_eval(join(src), private$context, serialize)`: SyntaxError: Unexpected token const
  Backtrace:
      █
   1. └─jsonvalidate::json_validator(...) test-validator.R:436:2
   2.   └─jsonvalidate:::jsonvalidate_js()
   3.     └─ct$source(system.file("bundle.js", package = "jsonvalidate"))
   4.       └─V8:::evaluate_js(readLines(file, encoding = "UTF-8", warn = FALSE))
   5.         ├─V8:::get_str_output(...)
   6.         └─V8:::context_eval(join(src), private$context, serialize)
  ── Error (test-validator.R:479:3): Parent schema with URL ID works ─────────────
  <std::invalid_argument/C++Error/error/condition>
  Error in `context_eval(join(src), private$context, serialize)`: SyntaxError: Unexpected token const
  Backtrace:
      █
   1. └─jsonvalidate::json_validator(...) test-validator.R:479:2
   2.   └─jsonvalidate:::jsonvalidate_js()
   3.     └─ct$source(system.file("bundle.js", package = "jsonvalidate"))
   4.       └─V8:::evaluate_js(readLines(file, encoding = "UTF-8", warn = FALSE))
   5.         ├─V8:::get_str_output(...)
   6.         └─V8:::context_eval(join(src), private$context, serialize)
  ── Error (test-validator.R:495:3): format keyword works ────────────────────────
  <std::invalid_argument/C++Error/error/condition>
  Error in `context_eval(join(src), private$context, serialize)`: SyntaxError: Unexpected token const
  Backtrace:
      █
   1. └─jsonvalidate::json_validator(str, "ajv") test-validator.R:495:2
   2.   └─jsonvalidate:::jsonvalidate_js()
   3.     └─ct$source(system.file("bundle.js", package = "jsonvalidate"))
   4.       └─V8:::evaluate_js(readLines(file, encoding = "UTF-8", warn = FALSE))
   5.         ├─V8:::get_str_output(...)
   6.         └─V8:::context_eval(join(src), private$context, serialize)
  ── Error (test-validator.R:512:3): format keyword works in draft-04 ────────────
  <std::invalid_argument/C++Error/error/condition>
  Error in `context_eval(join(src), private$context, serialize)`: SyntaxError: Unexpected token const
  Backtrace:
      █
   1. └─jsonvalidate::json_validator(str, "ajv", strict = TRUE) test-validator.R:512:2
   2.   └─jsonvalidate:::jsonvalidate_js()
   3.     └─ct$source(system.file("bundle.js", package = "jsonvalidate"))
   4.       └─V8:::evaluate_js(readLines(file, encoding = "UTF-8", warn = FALSE))
   5.         ├─V8:::get_str_output(...)
   6.         └─V8:::context_eval(join(src), private$context, serialize)
  ── Error (test-validator.R:528:3): unknown format type throws an error if in strict mode ──
  <std::invalid_argument/C++Error/error/condition>
  Error in `context_eval(join(src), private$context, serialize)`: SyntaxError: Unexpected token const
  Backtrace:
       █
    1. ├─testthat::expect_error(...) test-validator.R:528:2
    2. │ └─testthat:::expect_condition_matching(...)
    3. │   └─testthat:::quasi_capture(...)
    4. │     ├─testthat:::.capture(...)
    5. │     │ └─base::withCallingHandlers(...)
    6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    7. └─jsonvalidate::json_validator(str, "ajv", strict = TRUE)
    8.   └─jsonvalidate:::jsonvalidate_js()
    9.     └─ct$source(system.file("bundle.js", package = "jsonvalidate"))
   10.       └─V8:::evaluate_js(readLines(file, encoding = "UTF-8", warn = FALSE))
   11.         ├─V8:::get_str_output(...)
   12.         └─V8:::context_eval(join(src), private$context, serialize)
  ── Error (test-validator.R:554:3): json_validate can be run in strict mode ─────
  <std::invalid_argument/C++Error/error/condition>
  Error in `context_eval(join(src), private$context, serialize)`: SyntaxError: Unexpected token const
  Backtrace:
       █
    1. ├─testthat::expect_true(json_validate("{'a': 'foo'}", schema, engine = "ajv")) test-validator.R:554:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. └─jsonvalidate::json_validate("{'a': 'foo'}", schema, engine = "ajv")
    5.   └─jsonvalidate::json_validator(...)
    6.     └─jsonvalidate:::jsonvalidate_js()
    7.       └─ct$source(system.file("bundle.js", package = "jsonvalidate"))
    8.         └─V8:::evaluate_js(readLines(file, encoding = "UTF-8", warn = FALSE))
    9.           ├─V8:::get_str_output(...)
   10.           └─V8:::context_eval(join(src), private$context, serialize)
  ── Error (test-validator.R:581:3): validation works with 2019-09 schema version ──
  <std::invalid_argument/C++Error/error/condition>
  Error in `context_eval(join(src), private$context, serialize)`: SyntaxError: Unexpected token const
  Backtrace:
       █
    1. ├─testthat::expect_true(...) test-validator.R:581:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. └─jsonvalidate::json_validate("{'enabled': true}", schema, engine = "ajv")
    5.   └─jsonvalidate::json_validator(...)
    6.     └─jsonvalidate:::jsonvalidate_js()
    7.       └─ct$source(system.file("bundle.js", package = "jsonvalidate"))
    8.         └─V8:::evaluate_js(readLines(file, encoding = "UTF-8", warn = FALSE))
    9.           ├─V8:::get_str_output(...)
   10.           └─V8:::context_eval(join(src), private$context, serialize)
  ── Error (test-validator.R:631:3): validation works with 2020-12 schema version ──
  <std::invalid_argument/C++Error/error/condition>
  Error in `context_eval(join(src), private$context, serialize)`: SyntaxError: Unexpected token const
  Backtrace:
       █
    1. ├─testthat::expect_true(...) test-validator.R:631:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. └─jsonvalidate::json_validate("{'enabled': true}", schema, engine = "ajv")
    5.   └─jsonvalidate::json_validator(...)
    6.     └─jsonvalidate:::jsonvalidate_js()
    7.       └─ct$source(system.file("bundle.js", package = "jsonvalidate"))
    8.         └─V8:::evaluate_js(readLines(file, encoding = "UTF-8", warn = FALSE))
    9.           ├─V8:::get_str_output(...)
   10.           └─V8:::context_eval(join(src), private$context, serialize)
  ── Error (test-validator.R:647:3): ajv requires a valid meta schema version ────
  <std::invalid_argument/C++Error/error/condition>
  Error in `context_eval(join(src), private$context, serialize)`: SyntaxError: Unexpected token const
  Backtrace:
       █
    1. ├─testthat::expect_error(...) test-validator.R:647:2
    2. │ └─testthat:::expect_condition_matching(...)
    3. │   └─testthat:::quasi_capture(...)
    4. │     ├─testthat:::.capture(...)
    5. │     │ └─base::withCallingHandlers(...)
    6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    7. └─jsonvalidate::json_validator(schema, engine = "ajv")
    8.   └─jsonvalidate:::jsonvalidate_js()
    9.     └─ct$source(system.file("bundle.js", package = "jsonvalidate"))
   10.       └─V8:::evaluate_js(readLines(file, encoding = "UTF-8", warn = FALSE))
   11.         ├─V8:::get_str_output(...)
   12.         └─V8:::context_eval(join(src), private$context, serialize)
  
  [ FAIL 32 | WARN 0 | SKIP 0 | PASS 30 ]
  Error: Test failures
  Execution halted