Ensure thread-safe processing of js tests.