Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion packages/react-meteor-data/package.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,7 @@ Package.onTest((api) => {
api.use(['ecmascript', 'typescript', 'reactive-dict', 'reactive-var', 'tracker', 'tinytest', 'underscore', 'mongo']);
api.use('test-helpers');
api.use('react-meteor-data');
api.mainModule('tests.js');

// api.mainModule('tests.js');
api.addFiles(['useFind.ts', 'useFind.tests.js'], 'client');
});
6 changes: 2 additions & 4 deletions packages/react-meteor-data/useFind.tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,11 @@ if (Meteor.isClient) {

await waitFor(() => {}, { container, timeout: 250 })

test.equal(renders, 10, '10 items should have rendered - the initial list is always tossed.')

await waitFor(() => {
TestDocs.update({ id: 2 }, { $inc: { updated: 1 } })
}, { container, timeout: 250 })

test.equal(renders, 11, '11 items should have rendered - only 1 of the items should have been matched by the reconciler after a single change.')
test.equal(renders, 6, '6 items should have rendered - only 1 of the items should have been matched by the reconciler after a single change.')

completed()
})
Expand Down Expand Up @@ -104,7 +102,7 @@ if (Meteor.isClient) {
setReturnNull(false)

await waitFor(() => {}, { container, timeout: 250 })
test.isNotNull(returnValue, 'Return value should be null when the factory returns null')
test.equal(returnValue.length, 1, 'Return value should be an array with one document')

completed()
})
Expand Down
19 changes: 19 additions & 0 deletions tests/harness/.meteor/.finished-upgraders
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# This file contains information which helps Meteor properly upgrade your
# app when you run 'meteor update'. You should check it into version control
# with your project.

notices-for-0.9.0
notices-for-0.9.1
0.9.4-platform-file
notices-for-facebook-graph-api-2
1.2.0-standard-minifiers-package
1.2.0-meteor-platform-split
1.2.0-cordova-changes
1.2.0-breaking-changes
1.3.0-split-minifiers-package
1.4.0-remove-old-dev-bundle-link
1.4.1-add-shell-server-package
1.4.3-split-account-service-packages
1.5-add-dynamic-import-package
1.7-split-underscore-from-meteor-base
1.8.3-split-jquery-from-blaze
1 change: 1 addition & 0 deletions tests/harness/.meteor/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
local
7 changes: 7 additions & 0 deletions tests/harness/.meteor/.id
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# This file contains a token that is unique to your project.
# Check it into your repository along with the rest of this directory.
# It can be used for purposes such as:
# - ensuring you don't accidentally deploy one app on top of another
# - providing package authors with aggregated statistics

xi4ob9zualf.vxwytungbgj
19 changes: 19 additions & 0 deletions tests/harness/.meteor/packages
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Meteor packages used by this project, one per line.
# Check this file (and the other files in this directory) into your repository.
#
# 'meteor add' and 'meteor remove' will edit this file for you,
# but you can also edit it by hand.

meteor-base@1.5.1 # Packages every Meteor app needs to have
mobile-experience@1.1.0 # Packages for a great mobile UX
mongo@1.16.1 # The database Meteor supports right now
static-html@1.3.2 # Define static page content in .html files
reactive-var@1.0.12 # Reactive variable for tracker
tracker@1.2.1 # Meteor's client-side reactive programming library

standard-minifier-css@1.8.2 # CSS minifier run for production mode
standard-minifier-js@2.8.1 # JS minifier run for production mode
es5-shim@4.8.0 # ECMAScript 5 compatibility for older browsers
ecmascript@0.16.3 # Enable ECMAScript2015+ syntax in app code
typescript@4.5.4 # Enable TypeScript syntax in .ts and .tsx modules
shell-server@0.5.0 # Server-side component of the `meteor shell` command
2 changes: 2 additions & 0 deletions tests/harness/.meteor/platforms
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
server
browser
1 change: 1 addition & 0 deletions tests/harness/.meteor/release
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
METEOR@2.8.1
79 changes: 79 additions & 0 deletions tests/harness/.meteor/versions
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
allow-deny@1.1.1
autoupdate@1.8.0
babel-compiler@7.9.2
babel-runtime@1.5.1
base64@1.0.12
binary-heap@1.0.11
blaze@2.5.0
blaze-tools@1.1.3
boilerplate-generator@1.7.1
caching-compiler@1.2.2
caching-html-compiler@1.2.1
callback-hook@1.4.0
check@1.3.2
ddp@1.4.1
ddp-client@2.6.1
ddp-common@1.4.0
ddp-server@2.6.0
diff-sequence@1.1.2
dynamic-import@0.7.2
ecmascript@0.16.3
ecmascript-runtime@0.8.0
ecmascript-runtime-client@0.12.1
ecmascript-runtime-server@0.11.0
ejson@1.1.3
es5-shim@4.8.0
fetch@0.1.2
geojson-utils@1.0.11
hot-code-push@1.0.4
html-tools@1.1.3
htmljs@1.1.1
id-map@1.1.1
inter-process-messaging@0.1.1
jquery@3.0.0
launch-screen@1.3.0
logging@1.3.1
meteor@1.10.2
meteor-base@1.5.1
minifier-css@1.6.1
minifier-js@2.7.5
minimongo@1.9.0
mobile-experience@1.1.0
mobile-status-bar@1.1.0
modern-browsers@0.1.9
modules@0.19.0
modules-runtime@0.13.1
mongo@1.16.1
mongo-decimal@0.1.3
mongo-dev-server@1.1.0
mongo-id@1.0.8
npm-mongo@4.11.0
observe-sequence@1.0.20
ordered-dict@1.1.0
promise@0.12.1
random@1.2.1
react-fast-refresh@0.2.3
reactive-dict@1.3.1
reactive-var@1.0.12
reload@1.3.1
retry@1.1.0
routepolicy@1.1.1
session@1.2.1
shell-server@0.5.0
socket-stream-client@0.5.0
spacebars@1.2.0
spacebars-compiler@1.3.1
standard-minifier-css@1.8.2
standard-minifier-js@2.8.1
static-html@1.3.2
templating@1.4.1
templating-compiler@1.4.1
templating-runtime@1.5.0
templating-tools@1.2.2
test-in-browser@1.3.1
tinytest@1.2.1
tracker@1.2.1
typescript@4.5.4
underscore@1.0.11
webapp@1.13.2
webapp-hashing@1.1.1
Loading