如何为以下代码片段编写单元测试用例

how to write unit test case for following code snippet

export { className } from "path";  
export { className1} from "path";  
export { className2 } from "path";
export { className3 } from "path";

这个文件只包含以上几行,我们是否应该为这类文件编写单元测试用例,如果是,请建议如何为此编写单元测试用例。

提前致谢

无需为仅导出某些内容的文件编写测试。如果你有 coverageThreshold 就忽略那些文件

// jest.config.js
module.exports = {
  ...
  collectCoverage: true,
  collectCoverageFrom: [
    'path/to/collect/**',
    '!path/to/ignore/**',
  ],
  coverageThreshold: {
    global: {
      ...
    },
  },
};