From e6918187568dbd01842d8d1d2c808ce16a894239 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 21 Apr 2024 13:54:28 +0200 Subject: Adding upstream version 18.2.2. Signed-off-by: Daniel Baumann --- .../js/jestconfigs/jest.apache-arrow.config.js | 32 ++++++++++++++++++++++ src/arrow/js/jestconfigs/jest.coverage.config.js | 30 ++++++++++++++++++++ src/arrow/js/jestconfigs/jest.es2015.cjs.config.js | 32 ++++++++++++++++++++++ src/arrow/js/jestconfigs/jest.es2015.esm.config.js | 32 ++++++++++++++++++++++ src/arrow/js/jestconfigs/jest.es2015.umd.config.js | 32 ++++++++++++++++++++++ src/arrow/js/jestconfigs/jest.es5.cjs.config.js | 32 ++++++++++++++++++++++ src/arrow/js/jestconfigs/jest.es5.esm.config.js | 32 ++++++++++++++++++++++ src/arrow/js/jestconfigs/jest.es5.umd.config.js | 32 ++++++++++++++++++++++ src/arrow/js/jestconfigs/jest.esnext.cjs.config.js | 32 ++++++++++++++++++++++ src/arrow/js/jestconfigs/jest.esnext.esm.config.js | 32 ++++++++++++++++++++++ src/arrow/js/jestconfigs/jest.esnext.umd.config.js | 32 ++++++++++++++++++++++ src/arrow/js/jestconfigs/jest.src.config.js | 28 +++++++++++++++++++ src/arrow/js/jestconfigs/jest.ts.config.js | 31 +++++++++++++++++++++ 13 files changed, 409 insertions(+) create mode 100644 src/arrow/js/jestconfigs/jest.apache-arrow.config.js create mode 100644 src/arrow/js/jestconfigs/jest.coverage.config.js create mode 100644 src/arrow/js/jestconfigs/jest.es2015.cjs.config.js create mode 100644 src/arrow/js/jestconfigs/jest.es2015.esm.config.js create mode 100644 src/arrow/js/jestconfigs/jest.es2015.umd.config.js create mode 100644 src/arrow/js/jestconfigs/jest.es5.cjs.config.js create mode 100644 src/arrow/js/jestconfigs/jest.es5.esm.config.js create mode 100644 src/arrow/js/jestconfigs/jest.es5.umd.config.js create mode 100644 src/arrow/js/jestconfigs/jest.esnext.cjs.config.js create mode 100644 src/arrow/js/jestconfigs/jest.esnext.esm.config.js create mode 100644 src/arrow/js/jestconfigs/jest.esnext.umd.config.js create mode 100644 src/arrow/js/jestconfigs/jest.src.config.js create mode 100644 src/arrow/js/jestconfigs/jest.ts.config.js (limited to 'src/arrow/js/jestconfigs') diff --git a/src/arrow/js/jestconfigs/jest.apache-arrow.config.js b/src/arrow/js/jestconfigs/jest.apache-arrow.config.js new file mode 100644 index 000000000..103dc5a92 --- /dev/null +++ b/src/arrow/js/jestconfigs/jest.apache-arrow.config.js @@ -0,0 +1,32 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +module.exports = { + ...require("../jest.config"), + rootDir: "../", + preset: "ts-jest", + moduleFileExtensions: ["js", "ts"], + globals: { + "ts-jest": { + diagnostics: false, + tsconfig: "/test/tsconfig/tsconfig.apache-arrow.json", + }, + }, + moduleNameMapper: { + "^apache-arrow(.*)": "/targets/apache-arrow$1", + }, +}; diff --git a/src/arrow/js/jestconfigs/jest.coverage.config.js b/src/arrow/js/jestconfigs/jest.coverage.config.js new file mode 100644 index 000000000..3b0b6a1c6 --- /dev/null +++ b/src/arrow/js/jestconfigs/jest.coverage.config.js @@ -0,0 +1,30 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +module.exports = { + ...require("../jest.config"), + rootDir: "../", + collectCoverage: true, + reporters: undefined, + globals: { + "ts-jest": { + diagnostics: false, + tsconfig: "/test/tsconfig/tsconfig.coverage.json", + useESM: true, + }, + }, +}; diff --git a/src/arrow/js/jestconfigs/jest.es2015.cjs.config.js b/src/arrow/js/jestconfigs/jest.es2015.cjs.config.js new file mode 100644 index 000000000..1d5676761 --- /dev/null +++ b/src/arrow/js/jestconfigs/jest.es2015.cjs.config.js @@ -0,0 +1,32 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +module.exports = { + ...require("../jest.config"), + rootDir: "../", + preset: "ts-jest", + moduleFileExtensions: ["js", "ts"], + globals: { + "ts-jest": { + diagnostics: false, + tsconfig: "/test/tsconfig/tsconfig.es2015.cjs.json", + }, + }, + moduleNameMapper: { + "^apache-arrow(.*)": "/targets/es2015/cjs$1", + }, +}; diff --git a/src/arrow/js/jestconfigs/jest.es2015.esm.config.js b/src/arrow/js/jestconfigs/jest.es2015.esm.config.js new file mode 100644 index 000000000..cf564fb23 --- /dev/null +++ b/src/arrow/js/jestconfigs/jest.es2015.esm.config.js @@ -0,0 +1,32 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +module.exports = { + ...require("../jest.config"), + rootDir: "../", + globals: { + "ts-jest": { + diagnostics: false, + tsconfig: "/test/tsconfig/tsconfig.es2015.esm.json", + useESM: true, + }, + }, + moduleNameMapper: { + "^apache-arrow(.*)": "/targets/es2015/esm$1", + tslib: "tslib/tslib.es6.js" + }, +}; diff --git a/src/arrow/js/jestconfigs/jest.es2015.umd.config.js b/src/arrow/js/jestconfigs/jest.es2015.umd.config.js new file mode 100644 index 000000000..21f27872d --- /dev/null +++ b/src/arrow/js/jestconfigs/jest.es2015.umd.config.js @@ -0,0 +1,32 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +module.exports = { + ...require("../jest.config"), + rootDir: "../", + preset: "ts-jest", + moduleFileExtensions: ["js", "ts"], + globals: { + "ts-jest": { + diagnostics: false, + tsconfig: "/test/tsconfig/tsconfig.es2015.umd.json", + }, + }, + moduleNameMapper: { + "^apache-arrow(.*)": "/targets/es2015/umd/Arrow.js", + }, +}; diff --git a/src/arrow/js/jestconfigs/jest.es5.cjs.config.js b/src/arrow/js/jestconfigs/jest.es5.cjs.config.js new file mode 100644 index 000000000..ae3e9bb42 --- /dev/null +++ b/src/arrow/js/jestconfigs/jest.es5.cjs.config.js @@ -0,0 +1,32 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +module.exports = { + ...require("../jest.config"), + rootDir: "../", + preset: "ts-jest", + moduleFileExtensions: ["js", "ts"], + globals: { + "ts-jest": { + diagnostics: false, + tsconfig: "/test/tsconfig/tsconfig.es5.cjs.json", + }, + }, + moduleNameMapper: { + "^apache-arrow(.*)": "/targets/es5/cjs$1", + }, +}; diff --git a/src/arrow/js/jestconfigs/jest.es5.esm.config.js b/src/arrow/js/jestconfigs/jest.es5.esm.config.js new file mode 100644 index 000000000..0a0a21b76 --- /dev/null +++ b/src/arrow/js/jestconfigs/jest.es5.esm.config.js @@ -0,0 +1,32 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +module.exports = { + ...require("../jest.config"), + rootDir: "../", + globals: { + "ts-jest": { + diagnostics: false, + tsconfig: "/test/tsconfig/tsconfig.es5.esm.json", + useESM: true, + }, + }, + moduleNameMapper: { + "^apache-arrow(.*)": "/targets/es5/esm$1", + tslib: "tslib/tslib.es6.js" + }, +}; diff --git a/src/arrow/js/jestconfigs/jest.es5.umd.config.js b/src/arrow/js/jestconfigs/jest.es5.umd.config.js new file mode 100644 index 000000000..f52af07bc --- /dev/null +++ b/src/arrow/js/jestconfigs/jest.es5.umd.config.js @@ -0,0 +1,32 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +module.exports = { + ...require("../jest.config"), + rootDir: "../", + preset: "ts-jest", + moduleFileExtensions: ["js", "ts"], + globals: { + "ts-jest": { + diagnostics: false, + tsconfig: "/test/tsconfig/tsconfig.es5.umd.json", + }, + }, + moduleNameMapper: { + "^apache-arrow(.*)": "/targets/es5/umd/Arrow.js", + }, +}; diff --git a/src/arrow/js/jestconfigs/jest.esnext.cjs.config.js b/src/arrow/js/jestconfigs/jest.esnext.cjs.config.js new file mode 100644 index 000000000..8be999e3d --- /dev/null +++ b/src/arrow/js/jestconfigs/jest.esnext.cjs.config.js @@ -0,0 +1,32 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +module.exports = { + ...require("../jest.config"), + rootDir: "../", + preset: "ts-jest", + moduleFileExtensions: ["js", "ts"], + globals: { + "ts-jest": { + diagnostics: false, + tsconfig: "/test/tsconfig/tsconfig.esnext.cjs.json", + }, + }, + moduleNameMapper: { + "^apache-arrow(.*)": "/targets/esnext/cjs$1", + }, +}; diff --git a/src/arrow/js/jestconfigs/jest.esnext.esm.config.js b/src/arrow/js/jestconfigs/jest.esnext.esm.config.js new file mode 100644 index 000000000..aca4c5208 --- /dev/null +++ b/src/arrow/js/jestconfigs/jest.esnext.esm.config.js @@ -0,0 +1,32 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +module.exports = { + ...require("../jest.config"), + rootDir: "../", + globals: { + "ts-jest": { + diagnostics: false, + tsconfig: "/test/tsconfig/tsconfig.esnext.esm.json", + useESM: true, + }, + }, + moduleNameMapper: { + "^apache-arrow(.*)": "/targets/esnext/esm$1", + tslib: "tslib/tslib.es6.js" + }, +}; diff --git a/src/arrow/js/jestconfigs/jest.esnext.umd.config.js b/src/arrow/js/jestconfigs/jest.esnext.umd.config.js new file mode 100644 index 000000000..5013d45e0 --- /dev/null +++ b/src/arrow/js/jestconfigs/jest.esnext.umd.config.js @@ -0,0 +1,32 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +module.exports = { + ...require("../jest.config"), + rootDir: "../", + preset: "ts-jest", + moduleFileExtensions: ["js", "ts"], + globals: { + "ts-jest": { + diagnostics: false, + tsconfig: "/test/tsconfig/tsconfig.esnext.umd.json", + }, + }, + moduleNameMapper: { + "^apache-arrow(.*)": "/targets/esnext/umd/Arrow.js", + }, +}; diff --git a/src/arrow/js/jestconfigs/jest.src.config.js b/src/arrow/js/jestconfigs/jest.src.config.js new file mode 100644 index 000000000..08ccad061 --- /dev/null +++ b/src/arrow/js/jestconfigs/jest.src.config.js @@ -0,0 +1,28 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +module.exports = { + ...require("../jest.config"), + rootDir: "../", + globals: { + "ts-jest": { + diagnostics: false, + tsconfig: "/test/tsconfig/tsconfig.src.json", + useESM: true, + }, + }, +}; diff --git a/src/arrow/js/jestconfigs/jest.ts.config.js b/src/arrow/js/jestconfigs/jest.ts.config.js new file mode 100644 index 000000000..e56161b8b --- /dev/null +++ b/src/arrow/js/jestconfigs/jest.ts.config.js @@ -0,0 +1,31 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +module.exports = { + ...require("../jest.config"), + rootDir: "../", + globals: { + "ts-jest": { + diagnostics: false, + tsconfig: "/test/tsconfig/tsconfig.ts.json", + useESM: true, + }, + }, + moduleNameMapper: { + "^apache-arrow(.*)": "/targets/ts$1" + }, +}; -- cgit v1.2.3