File tree Expand file tree Collapse file tree 11 files changed +28
-28
lines changed
packages/testkit-backend/src Expand file tree Collapse file tree 11 files changed +28
-28
lines changed Original file line number Diff line number Diff line change 1- import Channel from './channel' // eslint-disable-line no-unused-vars
2- import Controller from './controller' // eslint-disable-line no-unused-vars
1+ import Channel from './channel/index.js ' // eslint-disable-line no-unused-vars
2+ import Controller from './controller/index.js ' // eslint-disable-line no-unused-vars
33
44/**
55 * Binds Channel and Controller
Original file line number Diff line number Diff line change 1- import Channel from './interface'
2- import SocketChannel from './socket'
3- import WebSocketChannel from './websocket'
1+ import Channel from './interface.js '
2+ import SocketChannel from './socket.js '
3+ import WebSocketChannel from './websocket.js '
44/**
55 * Channels are the pieces of code responsible for communicating with testkit.
66 *
Original file line number Diff line number Diff line change 1- import Channel from './interface'
1+ import Channel from './interface.js '
22import net from 'net'
33import { randomBytes } from 'crypto'
4- import Protocol from './testkit-protocol'
4+ import Protocol from './testkit-protocol.js '
55
66function generateRandomId ( ) {
77 return randomBytes ( 16 ) . toString ( 'hex' )
Original file line number Diff line number Diff line change 11import readline from 'readline'
22import EventEmitter from 'events'
3- import stringify from '../stringify'
3+ import stringify from '../stringify.js '
44
55export default class Protocol extends EventEmitter {
66 constructor ( stream ) {
Original file line number Diff line number Diff line change 11/* eslint-env browser */
2- import Channel from './interface'
2+ import Channel from './interface.js '
33
44/**
55 * This communication channel is meant to connect to other instances of the `testkit-backend` for receiving its events.
Original file line number Diff line number Diff line change 1- import { response } from './responses'
1+ import { response } from './responses.js '
22
33const originalConsole = console
44
Original file line number Diff line number Diff line change 1- import Controller from './interface'
2- import LocalController from './local'
3- import RemoteController from './remote'
1+ import Controller from './interface.js '
2+ import LocalController from './local.js '
3+ import RemoteController from './remote.js '
44
55/**
66 * Controllers are pieces of code responsible for redirecting requests to the correct handler.
Original file line number Diff line number Diff line change 1- import Context from '../context'
2- import Controller from './interface'
3- import stringify from '../stringify'
4- import { isFrontendError } from '../request-handlers'
5- import CypherNativeBinders from '../cypher-native-binders'
6- import FakeTime from '../mock/fake-time'
1+ import Context from '../context.js '
2+ import Controller from './interface.js '
3+ import stringify from '../stringify.js '
4+ import { isFrontendError } from '../request-handlers.js '
5+ import CypherNativeBinders from '../cypher-native-binders.js '
6+ import FakeTime from '../mock/fake-time.js '
77
88/**
99 * Local controller handles the requests locally by redirecting them to the correct request handler/service.
Original file line number Diff line number Diff line change 1- import Controller from './interface'
1+ import Controller from './interface.js '
22import { WebSocketServer } from 'ws'
33import { createServer } from 'http'
4- import { HttpStaticServer } from '../infrastructure'
5- import consoleRemote from '../console.remote'
4+ import { HttpStaticServer } from '../infrastructure/index.js '
5+ import consoleRemote from '../console.remote.js '
66
77/**
88 * RemoteController handles the requests by sending them a remote client.
Original file line number Diff line number Diff line change 1- import Backend from './backend'
1+ import Backend from './backend.js '
22import tls from 'tls'
33import neo4j from './neo4j.js'
4- import { SocketChannel , WebSocketChannel } from './channel'
5- import { LocalController , RemoteController } from './controller'
6- import { getShouldRunTest } from './skipped-tests'
7- import { createGetFeatures } from './feature'
4+ import { SocketChannel , WebSocketChannel } from './channel/index.js '
5+ import { LocalController , RemoteController } from './controller/index.js '
6+ import { getShouldRunTest } from './skipped-tests/index.js '
7+ import { createGetFeatures } from './feature/index.js '
88import * as REQUEST_HANDLERS from './request-handlers.js'
99import * as RX_REQUEST_HANDLERS from './request-handlers-rx.js'
1010import remoteConsole from './console.remote.js'
You can’t perform that action at this time.
0 commit comments