()
| 25 | }); |
| 26 | |
| 27 | async 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 | |
| 59 | module.exports = getTestConfig(); |
no test coverage detected
searching dependent graphs…