import * as AST from "../ast" ; type Tests = { [ key ] : AST . Regex | AST . RegexError ; } ; export const invalidTests = { "/(?:)/z" : { type : "error" , message : `Invalid regular expression flags 'z'` , } , } ; export const validTests = { "/(?:)/g" : { type : "regex" , body : [ { id : "" , type : "group" , kind : "nonCapturing" , children : [ ] , quantifier : null , } , ] , flags : [ "g" ] , withSlash : true , } , } ; const tests = { ... invalidTests , ... validTests } ; export default tests ;