Skip to content
Snippets Groups Projects
  • Davis Silverman's avatar
    b0c5a938
    Use Peggy instead of deprecated Peg.js (#934) · b0c5a938
    Davis Silverman authored
    Hi there, `Peg.js` is unmaintained, so I figure you all would appreciate
    if I replaced it with the drop-in replacement of Peggy. This is work I
    am breaking out of #918.
    
    Peggy adds new features like source map support that we could use,
    although I do not include that in this change-set. It may be useful for
    debugging changes to the .pegjs file we have.e
    Use Peggy instead of deprecated Peg.js (#934)
    Davis Silverman authored
    Hi there, `Peg.js` is unmaintained, so I figure you all would appreciate
    if I replaced it with the drop-in replacement of Peggy. This is work I
    am breaking out of #918.
    
    Peggy adds new features like source map support that we could use,
    although I do not include that in this change-set. It may be useful for
    debugging changes to the .pegjs file we have.e
jest.web.config.js 502 B
module.exports = {
  preset: 'ts-jest/presets/js-with-ts-esm',
  moduleFileExtensions: [
    'testing.js',
    'testing.ts',
    'web.js',
    'web.ts',
    'web.tsx',
    'mjs',
    'js',
    'ts',
    'tsx',
    'json',
  ],
  testEnvironment: 'jsdom',
  testPathIgnorePatterns: ['/node_modules/', '/lib/'].filter(Boolean),
  testMatch: ['**/*.web.test.(js|ts|tsx)'],
  transformIgnorePatterns: ['/node_modules/(?!absurd-sql)'],
  transform: {
    '\\.pegjs$': '<rootDir>/peg-transform.mjs',
  },
};