How to use the @adonisjs/fold.ioc.restore function in @adonisjs/fold

To help you get started, we’ve selected a few @adonisjs/fold examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github adonisjs / adonis-framework / test / integration / specs / context.spec.js View on Github external
group.beforeEach(() => {
    ioc.restore()
    RouteStore.clear()
  })
github HigoRibeiro / adonis-gql / test / unit / server.spec.js View on Github external
group.beforeEach(() => {
    ioc.restore()
    ioc.use('Gql').clear()
    mock({
      'App/Schemas/Unamed.graphql':
        'type Query { name: String } type Mutation { addName: String }',
      'App/Schemas/UserMiddleware.graphql':
        'type Query { user: String, users: [String] }'
    })

    middleware._middleware.global = []
    middleware._middleware.named = {}
  })
github duyluonglc / lucid-mongo / test / unit / factory.spec.js View on Github external
group.beforeEach(() => {
    Factory.clear()
    ioc.restore()
  })
github adonisjs / adonis-framework / test / unit / server.spec.js View on Github external
group.afterEach(() => {
    RouteStore.clear()
    ioc.restore()
    this.exception.clear()
  })
github adonisjs / adonis-framework / src / Traits / Hash.js View on Github external
suite.after(() => {
    ioc.restore('Adonis/Src/Hash')
  })
}