MCPcopy Create free account
hub / github.com/firebase/firebase-tools / getTestConfig

Function getTestConfig

firebase-vscode/src/test/webpack.test.js:27–57  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

25 });
26
27async function getTestConfig() {
28 const testFiles = await getTestFiles();
29
30 const testConfig = merge(extensionConfig, {
31 mode: "development",
32 name: "test",
33 parallelism: 20,
34 entry: testFiles,
35 output: {
36 // the bundle is stored in the 'dist' folder (check package.json), 📖 -> https://webpack.js.org/configuration/output/
37 path: path.resolve(
38 __dirname,
39 "../../dist/test/firebase-vscode/src/test/",
40 ),
41 filename: "[name].js",
42 libraryTarget: "commonjs2",
43 devtoolModuleFilenameTemplate: "../[resource-path]",
44 },
45 externals: {
46 vscode: "commonjs vscode", // the vscode-module is created on-the-fly and must be excluded. Add other modules that cannot be webpack'ed, 📖 -> https://webpack.js.org/configuration/externals/
47 fsevents: "require('fsevents')",
48 },
49 optimization: {
50 splitChunks: {
51 chunks: "all",
52 },
53 },
54 });
55
56 return testConfig;
57}
58
59module.exports = getTestConfig();

Callers 1

webpack.test.jsFile · 0.85

Calls 2

getTestFilesFunction · 0.85
mergeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…