local D=script.Parent local B={D.ReactDevtoolsShared.ReactDevtoolsShared}local c={}local z={D}for D,B in B do table.insert(c,B)table.insert(z,B)end return{setupFilesAfterEnv={D.jest.testSetupFile};projects=z;testMatch={"\042\042\047\095\095\116\101\115\116\115\095\095\047\042\046\040\115\112\101\099\124\116\101\115\116\041"},testPathIgnorePatterns=c}
local Workspace = script.Parent

-- In case we need to specify a custom testSetupFile for a project, we need to do that in in a separate jest.config.lua file that's in the project's root folder.
-- Therefore we specify the project here and provide it to the "projects" field in this config file.
-- We also need to add the project to the "testPathIgnorePatterns" field so that Jest doesn't try to run the project's tests again.
local projectsWithCustomJestConfig = {
	Workspace.ReactDevtoolsShared.ReactDevtoolsShared,
}
local testPathIgnorePatterns = {}
local allProjects = { Workspace }

for _, project in projectsWithCustomJestConfig do
	table.insert(testPathIgnorePatterns, project)
	table.insert(allProjects, project)
end

return {
	setupFilesAfterEnv = { Workspace.jest.testSetupFile },
	projects = allProjects,
	testMatch = {
		"**/__tests__/*.(spec|test)",
	},
	testPathIgnorePatterns = testPathIgnorePatterns,
}
