/**
 * @license
 * Copyright 2022-2026 Matter.js Authors
 * SPDX-License-Identifier: Apache-2.0
 */
import { Package } from "@nacho-iot/js-tools";
import { existsSync } from "node:fs";
function listSupportFiles(format = "cjs") {
  const files = Array();
  const testing = Package.findPackage("@matter/testing");
  files.push(testing.resolve("dist/esm/global-definitions.js"));
  files.push(testing.resolve("dist/esm/chai.js"));
  files.push(testing.resolve("dist/esm/mocks/index.js"));
  const config = new Package().resolve(`build/${format}/test/test.config.js`);
  if (existsSync(config)) {
    files.push(config);
  }
  return files;
}
export {
  listSupportFiles
};
//# sourceMappingURL=files.js.map
