]> git.proxmox.com Git - ceph.git/blame - ceph/src/arrow/js/jest.config.js
import quincy 17.2.0
[ceph.git] / ceph / src / arrow / js / jest.config.js
CommitLineData
1d09f67e
TL
1// Licensed to the Apache Software Foundation (ASF) under one
2// or more contributor license agreements. See the NOTICE file
3// distributed with this work for additional information
4// regarding copyright ownership. The ASF licenses this file
5// to you under the Apache License, Version 2.0 (the
6// "License"); you may not use this file except in compliance
7// with the License. You may obtain a copy of the License at
8//
9// http://www.apache.org/licenses/LICENSE-2.0
10//
11// Unless required by applicable law or agreed to in writing,
12// software distributed under the License is distributed on an
13// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14// KIND, either express or implied. See the License for the
15// specific language governing permissions and limitations
16// under the License.
17
18module.exports = {
19 verbose: false,
20 testEnvironment: "node",
21 globals: {
22 "ts-jest": {
23 diagnostics: false,
24 tsconfig: "test/tsconfig.json",
25 useESM: true,
26 },
27 },
28 rootDir: ".",
29 roots: ["<rootDir>/test/"],
30 preset: "ts-jest/presets/default-esm",
31 moduleFileExtensions: ["mjs", "js", "ts"],
32 coverageReporters: ["lcov", "json"],
33 coveragePathIgnorePatterns: [
34 "fb\\/(File|Message|Schema|Tensor)\\.(js|ts)$",
35 "test\\/.*\\.(ts|js)$",
36 "/node_modules/",
37 ],
38 transform: {
39 "^.+\\.js$": "ts-jest",
40 "^.+\\.ts$": "ts-jest",
41 },
42 transformIgnorePatterns: [
43 "/targets/(es5|es2015|esnext|apache-arrow)/",
44 "/node_modules/(?!@openpgp/web-stream-tools)/",
45 ],
46 testRegex: "(.*(-|\\.)(test|spec)s?)\\.(ts|js)$",
47 testMatch: null,
48 moduleNameMapper: {
49 "^apache-arrow$": "<rootDir>/src/Arrow.node",
50 "^apache-arrow(.*)": "<rootDir>/src$1",
51 flatbuffers: "flatbuffers/js/flatbuffers.mjs",
52 },
53};