From 8fd88aa6195117de83e0a33ece8ced95bcd5bf64 Mon Sep 17 00:00:00 2001 From: Chris Breiding Date: Thu, 8 Aug 2024 14:47:27 -0400 Subject: [PATCH] add support for 'test' test function --- extension.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/extension.js b/extension.js index 17baaae..67de4de 100644 --- a/extension.js +++ b/extension.js @@ -1,8 +1,8 @@ const { commands, Position, Range, window } = require('vscode') -const onlyRegex = /(describe|context|it)(\.only)/g -const skipRegex = /(describe|context|it)(\.skip)/g -const modifiableRunnableRegex = /(describe|context|it)(?=[ (])/ +const onlyRegex = /(describe|context|it|test)(\.only)/g +const skipRegex = /(describe|context|it|test)(\.skip)/g +const modifiableRunnableRegex = /(describe|context|it|test)(?=[ (])/ const getLineText = (editor, selection) => { const startLine = selection.start.line