toReverse is not available on old Node.js

This commit is contained in:
Simon Knott 2024-11-05 08:48:14 +01:00
parent b3066abaff
commit 62fd8b41de
No known key found for this signature in database
GPG key ID: 8CEDC00028084AEC

View file

@ -99,7 +99,7 @@ export function createGlobalSetupTasks(config: FullConfigInternal) {
tasks.push(createRemoveOutputDirsTask()); tasks.push(createRemoveOutputDirsTask());
tasks.push( tasks.push(
...createPluginSetupTasks(config), ...createPluginSetupTasks(config),
...config.globalTeardowns.toReversed().map(file => createGlobalTeardownTask(file, config)), ...config.globalTeardowns.map(file => createGlobalTeardownTask(file, config)).reverse(),
...config.globalSetups.map(file => createGlobalSetupTask(file, config)), ...config.globalSetups.map(file => createGlobalSetupTask(file, config)),
); );
return tasks; return tasks;