From b6c6777f6b75513f76d32672ecd084fb043f680d Mon Sep 17 00:00:00 2001 From: Ihor Chulinda Date: Thu, 3 May 2018 15:08:14 +0200 Subject: [PATCH] fix(core): correct order of readers --- packages/baset-core/src/testGroup.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/baset-core/src/testGroup.ts b/packages/baset-core/src/testGroup.ts index 62c80cc6..460d6a2d 100644 --- a/packages/baset-core/src/testGroup.ts +++ b/packages/baset-core/src/testGroup.ts @@ -139,7 +139,7 @@ export class TestGroup { private getCompiler = () => { const hooks = this.getHooks(); const resolvers = this.getResolvers(); - this.readerChain.reverse().forEach(reader => reader.registerHook(hooks.addHook, resolvers.addResolver)); + [...this.readerChain].reverse().forEach(reader => reader.registerHook(hooks.addHook, resolvers.addResolver)); return { compile: (code: string, filename: string) =>