Skip to content

UIPQB-55: Regular expressions are incorrect for contains and starts_w… #525

UIPQB-55: Regular expressions are incorrect for contains and starts_w…

UIPQB-55: Regular expressions are incorrect for contains and starts_w… #525

This check has been archived and is scheduled for deletion. Learn more about checks retention
GitHub Actions / Jest Unit Test Results failed Oct 10, 2023 in 0s

1 fail, 2 skipped, 49 pass in 41s

  1 files    8 suites   41s ⏱️
52 tests 49 ✔️ 2 💤 1
54 runs  51 ✔️ 2 💤 1

Results for commit 0168db0.

Annotations

Check warning on line 0 in mongoQueryToSource() should convert from source to simple query format

See this annotation in the file changed.

@github-actions github-actions / Jest Unit Test Results

mongoQueryToSource() should convert from source to simple query format (mongoQueryToSource() should convert from source to simple query format) failed

artifacts/jest-junit/junit.xml
Raw output
Error: expect(received).toEqual(expected) // deep equality

- Expected  - 2
+ Received  + 2

@@ -33,16 +33,16 @@
          ],
        },
      },
      Object {
        "user_full_name": Object {
-         "$regex": "^abc",
+         "$regex": "abc",
        },
      },
      Object {
        "user_full_name": Object {
-         "$regex": "^abc",
+         "$regex": "abc",
        },
      },
      Object {
        "languages": Object {
          "$nin": Array [
    at Object.toEqual (/home/runner/work/ui-plugin-query-builder/ui-plugin-query-builder/src/QueryBuilder/QueryBuilder/helpers/query.test.js:133:20)
    at Promise.then.completed (/home/runner/work/ui-plugin-query-builder/ui-plugin-query-builder/node_modules/jest-circus/build/utils.js:333:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (/home/runner/work/ui-plugin-query-builder/ui-plugin-query-builder/node_modules/jest-circus/build/utils.js:259:10)
    at _callCircusTest (/home/runner/work/ui-plugin-query-builder/ui-plugin-query-builder/node_modules/jest-circus/build/run.js:277:40)
    at _runTest (/home/runner/work/ui-plugin-query-builder/ui-plugin-query-builder/node_modules/jest-circus/build/run.js:209:3)
    at _runTestsForDescribeBlock (/home/runner/work/ui-plugin-query-builder/ui-plugin-query-builder/node_modules/jest-circus/build/run.js:97:9)
    at _runTestsForDescribeBlock (/home/runner/work/ui-plugin-query-builder/ui-plugin-query-builder/node_modules/jest-circus/build/run.js:91:9)
    at run (/home/runner/work/ui-plugin-query-builder/ui-plugin-query-builder/node_modules/jest-circus/build/run.js:31:3)
    at runAndTransformResultsToJestFormat (/home/runner/work/ui-plugin-query-builder/ui-plugin-query-builder/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:135:21)
    at jestAdapter (/home/runner/work/ui-plugin-query-builder/ui-plugin-query-builder/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:92:19)
    at runTestInternal (/home/runner/work/ui-plugin-query-builder/ui-plugin-query-builder/node_modules/jest-runner/build/runTest.js:411:16)
    at runTest (/home/runner/work/ui-plugin-query-builder/ui-plugin-query-builder/node_modules/jest-runner/build/runTest.js:499:34)