Skip to content

Commit 886de1e

Browse files
committed
chore(): tests to import from src instead of dist
1 parent b55b978 commit 886de1e

15 files changed

+15
-17
lines changed

packages/pg-query-stream/test/async-iterator.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import QueryStream from '../dist'
1+
import QueryStream from '../src'
22
import pg from 'pg'
33
import assert from 'assert'
44

packages/pg-query-stream/test/client-options.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import pg from 'pg'
22
import assert from 'assert'
3-
const QueryStream = require('../')
3+
import QueryStream from '../src'
44

55
describe('client options', function () {
66
it('uses custom types from client config', function (done) {

packages/pg-query-stream/test/close.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import assert from 'assert'
22
import concat from 'concat-stream'
3-
import QueryStream from '../'
3+
import QueryStream from '../src'
44
import helper from './helper'
55

66
if (process.version.startsWith('v8.')) {

packages/pg-query-stream/test/concat.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@ import assert from 'assert'
22
import concat from 'concat-stream'
33
import through from 'through'
44
import helper from './helper'
5-
6-
const QueryStream = require('../')
5+
import QueryStream from '../src'
76

87
helper('concat', function (client) {
98
it('concats correctly', function (done) {

packages/pg-query-stream/test/config.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import assert from 'assert'
2-
import QueryStream from '../'
2+
import QueryStream from '../src'
33

44
describe('stream config options', () => {
55
// this is mostly for backwards compatibility.

packages/pg-query-stream/test/empty-query.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
import assert from 'assert'
21
import helper from './helper'
3-
import QueryStream from '../'
2+
import QueryStream from '../src'
43

54
helper('empty-query', function (client) {
65
it('handles empty query', function (done) {

packages/pg-query-stream/test/error.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import assert from 'assert'
22
import helper from './helper'
3-
import QueryStream from '../'
3+
import QueryStream from '../src'
44

55
helper('error', function (client) {
66
it('receives error on stream', function (done) {

packages/pg-query-stream/test/fast-reader.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import assert from 'assert'
22
import helper from './helper'
3-
import QueryStream from '../'
3+
import QueryStream from '../src'
44

55
helper('fast reader', function (client) {
66
it('works', function (done) {

packages/pg-query-stream/test/instant.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import helper from './helper'
22
import assert from 'assert'
33
import concat from 'concat-stream'
4-
import QueryStream from '../'
4+
import QueryStream from '../src'
55

66
helper('instant', function (client) {
77
it('instant', function (done) {

packages/pg-query-stream/test/issue-3.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import pg from 'pg'
2-
import QueryStream from '../'
2+
import QueryStream from '../src'
33

44
describe('end semantics race condition', function () {
55
before(function (done) {

packages/pg-query-stream/test/passing-options.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import assert from 'assert'
22
import helper from './helper'
3-
import QueryStream from '../'
3+
import QueryStream from '../src'
44

55
helper('passing options', function (client) {
66
it('passes row mode array', function (done) {

packages/pg-query-stream/test/pauses.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import helper from './helper'
22
import concat from 'concat-stream'
33
import tester from 'stream-tester'
44
import JSONStream from 'JSONStream'
5-
import QueryStream from '../'
5+
import QueryStream from '../src'
66

77
helper('pauses', function (client) {
88
it('pauses', function (done) {

packages/pg-query-stream/test/slow-reader.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import helper from './helper'
2-
import QueryStream from '../'
2+
import QueryStream from '../src'
33
import concat from 'concat-stream'
44

55
import { Transform } from 'stream'

packages/pg-query-stream/test/stream-tester-timestamp.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import helper from './helper'
2-
import QueryStream from '../'
2+
import QueryStream from '../src'
33
import spec from 'stream-spec'
44
import assert from 'assert'
55

packages/pg-query-stream/test/stream-tester.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import spec from 'stream-spec'
22
import helper from './helper'
3-
import QueryStream from '../'
3+
import QueryStream from '../src'
44

55
helper('stream tester', function (client) {
66
it('passes stream spec', function (done) {

0 commit comments

Comments
 (0)