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
3
3
4
4
/**
5
5
* 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 '
4
4
/**
5
5
* Channels are the pieces of code responsible for communicating with testkit.
6
6
*
Original file line number Diff line number Diff line change 1
- import Channel from './interface'
1
+ import Channel from './interface.js '
2
2
import net from 'net'
3
3
import { randomBytes } from 'crypto'
4
- import Protocol from './testkit-protocol'
4
+ import Protocol from './testkit-protocol.js '
5
5
6
6
function generateRandomId ( ) {
7
7
return randomBytes ( 16 ) . toString ( 'hex' )
Original file line number Diff line number Diff line change 1
1
import readline from 'readline'
2
2
import EventEmitter from 'events'
3
- import stringify from '../stringify'
3
+ import stringify from '../stringify.js '
4
4
5
5
export default class Protocol extends EventEmitter {
6
6
constructor ( stream ) {
Original file line number Diff line number Diff line change 1
1
/* eslint-env browser */
2
- import Channel from './interface'
2
+ import Channel from './interface.js '
3
3
4
4
/**
5
5
* 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 '
2
2
3
3
const originalConsole = console
4
4
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 '
4
4
5
5
/**
6
6
* 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 '
7
7
8
8
/**
9
9
* 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 '
2
2
import { WebSocketServer } from 'ws'
3
3
import { 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 '
6
6
7
7
/**
8
8
* 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 '
2
2
import tls from 'tls'
3
3
import 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 '
8
8
import * as REQUEST_HANDLERS from './request-handlers.js'
9
9
import * as RX_REQUEST_HANDLERS from './request-handlers-rx.js'
10
10
import remoteConsole from './console.remote.js'
You can’t perform that action at this time.
0 commit comments