File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -53,8 +53,10 @@ ${after}
5353// variant of the `Test` type. To avoid having to update this regex if a new
5454// variant is added, newer versions of elm-explorations/test have prefixed all
5555// variants with `ElmTestVariant__` so we can match just on that.
56+ // `\$?` is for the Lamdera compiler, where definitions sometimes end with a `$`.
57+ // See https://github.com/lamdera/compiler/pull/41#issuecomment-2725158568
5658const testVariantDefinition =
57- / ^ v a r \s + \$ e l m _ e x p l o r a t i o n s \$ t e s t \$ T e s t \$ I n t e r n a l \$ (?: E l m T e s t V a r i a n t _ _ \w + | U n i t T e s t | F u z z T e s t | L a b e l e d | S k i p p e d | O n l y | B a t c h ) \s * = \s * (?: \w + \( \s * ) ? f u n c t i o n \s * \( [ \w , ] * \) \s * \{ \s * r e t u r n * \{ / gm;
59+ / ^ v a r \s + \$ e l m _ e x p l o r a t i o n s \$ t e s t \$ T e s t \$ I n t e r n a l \$ (?: E l m T e s t V a r i a n t _ _ \w + | U n i t T e s t | F u z z T e s t | L a b e l e d | S k i p p e d | O n l y | B a t c h ) \$ ? \ s* = \s * (?: \w + \( \s * ) ? f u n c t i o n \s * \( [ \w , ] * \) \s * \{ \s * r e t u r n * \{ / gm;
5860
5961const checkDefinition =
6062 / ^ ( v a r \s + \$ a u t h o r \$ p r o j e c t \$ T e s t \$ R u n n e r \$ N o d e \$ c h e c k ) \s * = \s * \$ a u t h o r \$ p r o j e c t \$ T e s t \$ R u n n e r \$ N o d e \$ c h e c k H e l p e r R e p l a c e M e _ _ _ ; ? $ / m;
You can’t perform that action at this time.
0 commit comments